JPH03127104A - Data link device of programmable controller - Google Patents

Data link device of programmable controller

Info

Publication number
JPH03127104A
JPH03127104A JP26494889A JP26494889A JPH03127104A JP H03127104 A JPH03127104 A JP H03127104A JP 26494889 A JP26494889 A JP 26494889A JP 26494889 A JP26494889 A JP 26494889A JP H03127104 A JPH03127104 A JP H03127104A
Authority
JP
Japan
Prior art keywords
link
data
transmission
register
programmable controller
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
JP26494889A
Other languages
Japanese (ja)
Inventor
Yoshiro Kikuchi
菊池 吉郎
Tadashi Okamoto
正 岡本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Engineering Co Ltd
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Engineering Co Ltd
Priority to JP26494889A priority Critical patent/JPH03127104A/en
Publication of JPH03127104A publication Critical patent/JPH03127104A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To effectively utilize a common link register and to improve the transmission/reception processing efficiency by providing a means which can transmit data to an arbitrary area of a specific PC, when a sequence program is being executed. CONSTITUTION:In a CPU unit part 3, a link table 35 for storing link register allocating information, a parameter table 33 which is used for transmitting separate data and a link actuation program 38 refers to, a separate data transmitting request flag 30, a separate data transmitting buffer 31, a separate data link condition register 32, and a bus buffer 40 are connected. In such a state, in the case a link register being common to all programmable controllers (PC) whose size is limited is divided as a transmitting register range of every PC, the division and allocation are executed by detaining them to a link register range used in common by all the PCs to the utmost and a data link is executed, and in accordance with necessity, separate data is also transmitted. In such a way, the common link register is utilized effectively and the transmission/ reception processing efficiency can be improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、各種制御に用いられるプログラマブルコント
ローラ(以下PCと称す)によるライン制御やプラント
制御といった分散制御を実現するうえで好適なPCのデ
ータリンク装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides data for a PC that is suitable for realizing distributed control such as line control and plant control using a programmable controller (hereinafter referred to as PC) used for various types of control. Regarding a link device.

〔従来の技術〕[Conventional technology]

従来、20間のデータリンクは、接続されている全PC
が共通のリンクレジスタを持ち、予め前記共通リンクレ
ジスタを各PC毎の送信レジスタ範囲として分割し、そ
の分割情報をマスターPCのリンクテーブルに全40分
設定するか、各PC毎のリンクテーブルにそれぞれの送
信レジスタ範囲を設定する。その後、各PCが自号機に
割り当てられているリンクレジスタのデータをブロード
キャスティング方式で送信することにより、他の全PC
は、自号機の前記共通リンクレジスタ内の送信元PCに
割り当てられているリンクレジスタ範囲をリフレッシュ
する。この繰り返しにより全PCが共通データを共有す
るリンク方法となっていた。
Traditionally, a data link between 20
have a common link register, divide the common link register in advance as a transmission register range for each PC, and set the division information for the total 40 minutes in the link table of the master PC, or set it separately in the link table of each PC. Set the transmit register range. After that, each PC transmits the data of the link register assigned to its own machine using the broadcasting method, so that all other PCs
refreshes the link register range assigned to the source PC in the common link register of the own machine. By repeating this process, the linking method was such that all PCs shared common data.

なお、この種のプログラマブルコントローラのデータリ
ンク方法として関連するものには、特開昭62−121
505号、特開昭62−200839号記載のものが挙
げられる。
In addition, a related data link method for this type of programmable controller is disclosed in Japanese Patent Application Laid-Open No. 62-121.
505 and those described in JP-A-62-200839.

〔発明が解決しようとする!+11題〕上記従来技術は
、共通リンクレジスタを全PCでそれぞれが送信するレ
ジスタ範囲で分割するため、ある特定少数の20間での
み使用するリンクレジスタ範囲が大量の場合、他の多数
のPCにとっては不要の範囲が大きくなり、自機送信リ
ンクレジスタ範囲に大きな制限を受け、共通リンクレジ
スタの利用効率の面で問題があった。
[Invention tries to solve! +11 problems] In the above conventional technology, the common link register is divided among all PCs by the register range that each sends, so if the link register range used only among a certain small number of 20 is large, it will be difficult for many other PCs to use the common link register. The unnecessary range became large, and the range of the transmission link register of the own machine was severely limited, which caused problems in terms of the efficiency of use of the common link register.

本発明の目的は、共通リンクレジスタを用いたPCのデ
ータリンクにおいて、共通リンクレジスタの有効利用と
送受信処理効率の向上を図ることにある。
An object of the present invention is to effectively utilize a common link register and improve transmission/reception processing efficiency in a PC data link using a common link register.

本発明の他の目的は1回線効率を向よさせ、データ伝達
の高速化を図ることにある。
Another object of the present invention is to improve single line efficiency and speed up data transmission.

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

上記目的を達成するために、シーケンスプログラムの一
命令としてのリンク起動プログラムと、前記リンク起動
プログラムが参照すべき個別データ送信用パラメータテ
ーブルを設け、シーケンスプログラム実行中、すなわち
ユーザ任意タイミングで、ある任意の特定PCの任意メ
モリエリアにデータ送信できる手段を採用したものであ
る。
In order to achieve the above purpose, a link activation program as one command of the sequence program and a parameter table for individual data transmission to be referred to by the link activation program are provided, and a certain arbitrary This system employs means that can transmit data to any memory area of a specific PC.

上記他の目的を達成するためには、伝送フレームに共通
データのみ、個別データのみ、及び共通データと個別デ
ータ同時の3種を判別するための通信種別コードを設け
、送信側で設定、受信側で検出・判別する手段を採用し
たものである。
In order to achieve the other objectives mentioned above, a communication type code is provided in the transmission frame to distinguish three types: common data only, individual data only, and common data and individual data simultaneously. This method employs a method of detecting and discriminating.

〔作用〕[Effect]

サイズが限定されている全PCに共通のリンクレジスタ
を各PC毎の送信レジスタ範囲として分割する場合、極
力全PCが共通で使用するリンクレジスタ範囲にとどめ
て分割・割当てしてデータリンクを行い、ユーザ任意タ
イミングで任意PCの任意メモリエリアに自PCの任意
メモリエリアのデータを送信する手段により、必要に応
じて個別データをも送信することになるので、共通リン
クレジスタの有効利用と送受信処理効率の向上が図れる
When dividing a link register common to all PCs whose size is limited as a transmission register range for each PC, perform data linking by dividing and allocating the link register range that is commonly used by all PCs as much as possible. By means of transmitting data in the arbitrary memory area of the own PC to the arbitrary memory area of the arbitrary PC at the user's arbitrary timing, individual data can also be transmitted as needed, which improves the effective use of common link registers and the efficiency of transmission/reception processing. can be improved.

また1周期的に各PCが送信を繰り返して、行われてい
る共通のリンクレジスタによるデータリンクにおける伝
送フレームに、ユーザ任意タイミングで送信しようとす
る個別データを付加する手段により、回線効率を向上さ
せ、共通データ及び個別データ相互からみたデータ伝達
の高速化が図れる。
In addition, line efficiency is improved by adding individual data to be transmitted at a user's arbitrary timing to the transmission frame in the data link using the common link register by repeating transmission by each PC in one cycle. , it is possible to speed up data transmission in terms of common data and individual data.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を用いて説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図に、本発明の特徴である、PCのデータリンク装
置の全体構成を示す。
FIG. 1 shows the overall configuration of a data link device for a PC, which is a feature of the present invention.

各PCIは、リンクユニット部2と、CPUユニット部
3から成り、他PCとはシリアルバス4で接続されてい
る。
Each PCI consists of a link unit section 2 and a CPU unit section 3, and is connected to other PCs via a serial bus 4.

前記リンクユニット部2と前記CPUユニット部3はバ
ス28とバス39により、バスバッファ40を介して接
続される。
The link unit section 2 and the CPU unit section 3 are connected by a bus 28 and a bus 39 via a bus buffer 40.

前記リンクユニット部2では、前記バス28に、データ
リンク処理用CPU23.他のPCから受信した共通リ
ンクレジスタの一時格納用のリンクユニット部リンクレ
ジスタ25、リンクレジスタ割付は情報を格納するリン
クユニット部のリンクテーブル26、個別データ送信用
として用いる個別データ送信有フラグ22と個別データ
取込み中フラグ21.送信バッファ24.受信バッファ
20、及びDMAC,ADLCから成るシリアルバスコ
ントローラ27が接続されている。
In the link unit section 2, the data link processing CPU 23. A link register 25 in the link unit section for temporarily storing common link registers received from other PCs, a link table 26 in the link unit section for storing information about link register allocation, and an individual data transmission flag 22 used for individual data transmission. Individual data importing flag 21. Transmission buffer 24. A receive buffer 20 and a serial bus controller 27 consisting of DMAC and ADLC are connected.

前記CPUユニット部3では、前記バス39に。In the CPU unit section 3, the bus 39 is connected.

シーケンスプログラムを格納するシーケンスプログラム
メモリ37.シーケンスプログラムを読出し、実行を繰
り返すシーケンスプログラム処理用CPU36、全プロ
グラマブルコントローラが共有する共通データリンク用
のリンクレジスタ34、自PCのリンクレジスタ割付は
情報を格納するリンクテーブル35、個別データ送信用
でリンク起動プログラム38が参照するパラメータテー
ブル33、同じく個別データ送信用の個別データ送信要
求フラグ30と個別データ送信バッファ31と個別デー
タリンク条件レジスタ32、及び前記パスバッファ40
が接続されている。
Sequence program memory 37 for storing sequence programs. A CPU 36 for sequence program processing that reads and repeats execution of sequence programs, a link register 34 for common data links shared by all programmable controllers, a link table 35 for storing information for the link register allocation of the own PC, and a link for individual data transmission. A parameter table 33 referenced by the startup program 38, an individual data transmission request flag 30 for individual data transmission, an individual data transmission buffer 31, an individual data link condition register 32, and the path buffer 40.
is connected.

データの送信及び受信動作は、前記データリンク処理用
CPU23の制御の下で、前記シリアルバスコントロー
ラ27により、前記シリアルバス4と前記送信バッファ
24、及び前記受信バッファ20の間でr)MA転送さ
れる。
Data transmission and reception operations are performed by r) MA transfer between the serial bus 4, the transmission buffer 24, and the reception buffer 20 by the serial bus controller 27 under the control of the data link processing CPU 23. Ru.

また、前記リンクユニット部2と、前記CPUユニット
部3間における共通リンクレジスタデータ及び個別デー
タの転送は、前記データリンク処理用CPU23が実行
することにより、前記シーケンスプログラム処理用CP
U36は、シーケンスプログラム処理に集中でき1円滑
な制御を継続できる。
Further, the transfer of common link register data and individual data between the link unit section 2 and the CPU unit section 3 is executed by the data link processing CPU 23, so that the sequence program processing CPU
U36 can concentrate on sequence program processing and continue smooth control.

前記データリンク処理用CPU23の処理は、送信処理
、受信処理、アイドル処理に大別される。
The processing of the data link processing CPU 23 is roughly divided into transmission processing, reception processing, and idle processing.

送信処理は、タイマ割込処理であり、PC番号昇順の順
次送信方式と連続番号pc間のある決められた送信間隔
に基づき、送信時と受信時毎に送信タイミング用タイマ
カウンタが設定される。
The transmission process is a timer interrupt process, and a timer counter for transmission timing is set for each transmission and reception based on the sequential transmission method in ascending order of PC numbers and a certain transmission interval between consecutive numbers pc.

受信処理は、送信フレームのフラグ検出による割込処理
であり、受信したリンクレジスタのデータを前記受信バ
ッファ20から前記リンクユニット部リンクレジスタ2
5に、受信した個別データを直接指定エリアに転送して
終了する。
The reception process is an interrupt process by detecting a flag of a transmission frame, and transfers the received link register data from the reception buffer 20 to the link register 2 of the link unit section.
5, the received individual data is directly transferred to the designated area and the process ends.

アイドル処理では、前記リンクユニ91〜部リンクレジ
スタ25の内容を前記リンクレジスタ34に転送し、シ
ーケンスプログラムに反射される最終段のリンクレジス
タ34をリフレッシュする。
In the idle process, the contents of the link unit 91 to unit link register 25 are transferred to the link register 34, and the final stage link register 34, which is reflected in the sequence program, is refreshed.

また、前記リンクレジスタ34内の自PC送信レジスタ
範囲の内容と、個別データ送信要求がある場合は、個別
データとを前記送信バッファに転送している。
Further, the contents of the own PC transmission register range in the link register 34 and, if there is an individual data transmission request, the individual data are transferred to the transmission buffer.

第2図に、シーケンスプログラムの一命令として設けた
。リンク起動プログラム38の起動方法を示す。
In FIG. 2, it is provided as one command of the sequence program. A method of starting the link starting program 38 will be described.

第2図において、シーケンスプログラム50はスキャニ
ング方式で実行されている。制御系条件プログラム51
aで、特定PCに対して、ある個別データを送信する必
要があることを判定後、パラメータテーブル33に送信
先PC番号、個別データ、送信語数、自pc内送信デー
タ格納アドレス、及び送信先PC内送信データ格納アド
レスをDST (データセット)命令等の手段で設定す
る。
In FIG. 2, the sequence program 50 is executed in a scanning manner. Control system condition program 51
After determining in step a that it is necessary to send certain individual data to a specific PC, the destination PC number, individual data, number of words to be sent, transmission data storage address within the own PC, and destination PC are entered in the parameter table 33. The internal transmission data storage address is set by means such as a DST (data set) command.

次にリンク起動プログラム5ENDを起動してよいか、
制御系条件プログラム51bで制御上の必要条件を判定
し、さらにリンク系条件プログラム52にて、前記リン
クユニット部2のリンク動作可能、前回の起動による個
別データ送信の終了。
Next, ask if you want to start the link startup program 5END.
The control system condition program 51b determines the necessary control conditions, and the link system condition program 52 determines that the link unit section 2 can be linked and that the individual data transmission due to the previous activation is completed.

他を判定して、リンク起動プログラム5ENDを起動す
る。この時、パラメータテーブルトップアドレス53は
、予めプログラミングしておく必要があるが、これは、
パラメータテーブルを固定にする方式であれば不要とな
る。また、パラメータテーブル33の内容を予めプログ
ラミングしておく方式であれば、DST命令も不要とな
る。
The others are determined and the link activation program 5END is activated. At this time, the parameter table top address 53 needs to be programmed in advance;
This is not necessary if the parameter table is fixed. Further, if the content of the parameter table 33 is programmed in advance, the DST command is not required.

しかし、第2図に示したように、シーケンスプログラム
の実行により、ダイナミックにパラメータを設定、変更
できる方式が、フレキシブルな制御を可能となる。
However, as shown in FIG. 2, a system in which parameters can be dynamically set and changed by executing a sequence program enables flexible control.

第3図に、前記シーケンスプログラム処理用CPU36
によるリンク起動プログラム処理と、前記データリンク
処理用CPU23によるアイドル処理、送信処理、及び
受信処理に関連する各穐テーブルとデータの動きを以下
(1)〜(4)に示す。
FIG. 3 shows the sequence program processing CPU 36.
The movements of each table and data related to the link activation program processing by the data link processing CPU 23, and the idle processing, transmission processing, and reception processing by the data link processing CPU 23 are shown in (1) to (4) below.

第3図において、前記リンクテーブル35に設定されて
いる自pcg号jに割当ての共通リンクレジスタ送信範
囲は、初期処理で、前記リンクテーブル26に取込まれ
ている。
In FIG. 3, the common link register transmission range assigned to the own PCG number j set in the link table 35 is taken into the link table 26 in the initial processing.

(1)シーケンスプログラムによって起動されたリンク
起動プログラムは、第4図に示す処理手順に従い、ステ
ップH8Iで、パラメータテーブル33の合理性チエツ
クを行い、ステップH82で、前記パラメータテーブル
33の内容と個別データリンク条件レジスタ32の内容
から、リンクユニット部2のリンク動作可/否及び個別
データ送信バッファ31の空き等を判定し、今回の個別
データの送信が不可能である場合には、ステップH56
で、前記個別データリンク条件レジスタ32にエラー情
報を設定して、シーケンスプログラムに処理を戻す。な
お、前記個別データリンク条件レジスタ32は、リンク
起動プログラム及び前記データリンク処理用CPU23
によって設定されるPCの内部接点であり、第2図に示
したリンク系条件プログラム52は、この内部接点を条
件として組込んだものとなる。
(1) The link starting program started by the sequence program checks the rationality of the parameter table 33 in step H8I according to the processing procedure shown in FIG. 4, and checks the contents of the parameter table 33 and the individual data in step H82. Based on the contents of the link condition register 32, it is determined whether the link unit section 2 is capable of link operation and whether the individual data transmission buffer 31 is empty, etc., and if the current transmission of individual data is not possible, step H56 is performed.
Then, error information is set in the individual data link condition register 32, and the process returns to the sequence program. It should be noted that the individual data link condition register 32 includes a link activation program and the data link processing CPU 23.
The link system condition program 52 shown in FIG. 2 incorporates this internal contact as a condition.

さて、ステップH52で、送信可能と判定後は、ステッ
プH83で、直ちに前記個別データリンク条件レジスタ
32を送信不可に設定する。これは、スキャニング方式
で実行されるシーケンスプログラムからの多重起動を回
避する手段として重要である。また、送信不可の情報は
、今回の個別データ送信が終了すると前記データリンク
処理用CPU23が送信可に切り換える。ステップH3
4では、前記パラメータテーブル33の内容に従い、前
記個別データ送信バッファ31に、アドレス指定先の個
別データ格納エリア41から個別データを、また、前記
パラメータテーブル33から送信先pc番番号2別別デ
ータ送信語数、及び送信先PC内データ格納アドレスを
それぞれ取り込む。
After it is determined in step H52 that transmission is possible, the individual data link condition register 32 is immediately set to disable transmission in step H83. This is important as a means to avoid multiple activations from sequence programs executed in the scanning method. Further, the data link processing CPU 23 switches the information indicating that transmission is not possible to possible when the current individual data transmission is completed. Step H3
4, according to the contents of the parameter table 33, individual data is sent from the individual data storage area 41 of the address specification to the individual data transmission buffer 31, and separate data is sent from the parameter table 33 to the destination PC number 2. The number of words and the data storage address in the destination PC are respectively imported.

さらに、通信種別コードとして個別データ有を設定し、
共通系語数として前記リンクテーブル35の自PCのリ
ンクレジスタ割当て範囲情報からリンクレジスタ語数を
算出し、それにリンクテーブル情報の語数を加算した値
を設定し、個別系語数として個別データ送信語数情報と
送信先pc内送信データ格納ナトレス情報と個別データ
の総和語数を設定する。最後にステップH35で個別デ
ータ送信要求フラグ30をONL、てシーケンスプログ
ラムに処理を戻す。
Furthermore, set individual data available as the communication type code,
The number of link register words is calculated from the link register allocation range information of the own PC in the link table 35 as the number of common group words, and the value obtained by adding the number of words of the link table information to that is set, and the number of individual data transmission words is set as the number of individual group words. Set the total number of words for the destination PC's transmission data storage Natres information and individual data. Finally, in step H35, the individual data transmission request flag 30 is set to ONL, and the process returns to the sequence program.

(2)データリンク処理用CPU23のアイドル処理は
、第5図に示す処理手順に従い、ステップISIからス
テップIS7を繰り返している。
(2) The idle processing of the data link processing CPU 23 repeats steps ISI to IS7 in accordance with the processing procedure shown in FIG.

上記従来技術による共通リンクレジスタのデータリンク
では、ステップIS7だけを繰り返していた。
In the data link of the common link register according to the prior art described above, only step IS7 is repeated.

ステップISIにて前記個別データ送信要求フラグ30
の0N10FFを判定し、ONの場合。
At step ISI, the individual data transmission request flag 30
0N10FF is determined, and if it is ON.

ステップIS2にて個別データ取込み中フラグ21をO
NL、ステップIS3にて前記個別データ送信バッファ
31の内容を前記送信バッファ24に取込む。ここで1
個別データ送信語数情報から個別データまでの内容を取
込むエリアは、前記共通系語数により変化し、仮に、共
通系語数がOの場合には、前記送信バッファ24におけ
るリンクテーブル情報と共通データのエリアは削除され
る。また、ステップIS3では、送信元PC番号として
自PC番号を設定している。ステップIS4からIS6
では、個別データ送信有フラグ22を、ON、前記個別
データ送信要求フラグ30をOFF、前記個別データ取
込み中フラグ21をOFFする。ここまでのステップI
S2゜IS4.IS6の各処理結果は、後述の送信処理
手順において、送信手段の選択に使われる。ステップI
S7では、他PCから受信したリンクレジスタ情報を前
記リンクユニット部リンクレジスタ25からCPUユニ
ット部のリンクレジスタ34に転送し、自PCの送信リ
ンクレジスタ割当てがある場合には、その割当て範囲の
リンクレジスタ情報を前記リンクレジスタ34から前記
送信バッファ24に転送する。
Set the individual data importing flag 21 to O in step IS2.
NL, the contents of the individual data transmission buffer 31 are taken into the transmission buffer 24 in step IS3. Here 1
The area for capturing the contents from the individual data transmission word count information to the individual data changes depending on the number of common words, and if the number of common words is O, the area for link table information and common data in the transmission buffer 24 will be deleted. Furthermore, in step IS3, the own PC number is set as the source PC number. Steps IS4 to IS6
Then, the individual data transmission flag 22 is turned on, the individual data transmission request flag 30 is turned off, and the individual data fetching flag 21 is turned off. Step I so far
S2゜IS4. Each processing result of IS6 is used to select a transmission means in a transmission processing procedure described later. Step I
In S7, link register information received from another PC is transferred from the link register 25 of the link unit section to the link register 34 of the CPU unit section, and if there is a transmission link register assignment for the own PC, the link register information in the assigned range is transferred. Transfer information from the link register 34 to the transmit buffer 24.

(3)送信処理は第6図に示す処理手順で、リンクレジ
スタの共通データ単独送信2佃別データ単独送信、及び
共通データと個別データ同時送信が行われる。上記従来
技術による共通リンクレジスタのデータリンクでは、ス
テップTS4だけの処理となる。
(3) The transmission process is a processing procedure shown in FIG. 6, in which link register common data single transmission, two-group data single transmission, and common data and individual data simultaneous transmission are performed. In the data link of the common link register according to the prior art described above, only step TS4 is processed.

ステップTS1にて前記個別データ送信有フラグ22を
チエツクし、OFFの場合には、ステップTS2にて前
記個別データ取込み中フラグ21をチエツクし、OFF
の場合には、ステップTS3にて前記リンクテーブル2
6の自PC送信リンクレジスタ割当てが有るかチエツク
して、有る場合には、通信種別コードとして個別データ
無、送信元pc番号に自PC番号、リンクテーブル情報
として前記リンクテーブル26から自PC送信リンクレ
ジスタ割当て範囲、及び共通系語数としてリンクテーブ
ル情報と共通データの総語数1個別系語数としてOをそ
れぞれ前記送信バッファ24に設定して、ステップTS
4で前記シリアルバス4に共通データのみとして送出す
る。
At step TS1, the individual data transmission flag 22 is checked, and if it is OFF, at step TS2, the individual data fetching flag 21 is checked and turned OFF.
In this case, in step TS3, the link table 2
Check if there is own PC transmission link register allocation in 6. If there is, no individual data as communication type code, own PC number as sender PC number, own PC transmission link from link table 26 as link table information. The register allocation range and the total number of words of link table information and common data as the number of common words and O as the number of individual words are set in the transmission buffer 24, and step TS
4, the data is sent to the serial bus 4 as only common data.

ステップTS1にてONの場合には、ステップTS5に
て前記リンクテーブル26の自PC送信リンクレジスタ
割当てが有るかチエツクし、無い場合には、ステップT
S6で個別データのみを送信する。また、自PC送信リ
ンクレジスタ割当てが有る場合には、リンクテーブル情
報として前記リンクテーブル26の自PC送信リンクレ
ジスタ割当て範囲を前記送信バッファ24に設定し、ス
テップTS7で共通データと個別データを同時に送出す
る。
If it is ON in step TS1, it is checked in step TS5 whether there is any own PC transmission link register assignment in the link table 26, and if not, step T
Only the individual data is transmitted in S6. In addition, if there is own PC transmission link register allocation, the own PC transmission link register allocation range of the link table 26 is set in the transmission buffer 24 as link table information, and common data and individual data are simultaneously sent out in step TS7. do.

なお、前記個別データ送信布フラグ22個別データの送
信終了でOFFにリセットされる。
Note that the individual data transmission flag 22 is reset to OFF when the transmission of individual data is completed.

(4)第7図に受信処理手順を示す、上記従来技術によ
る共通リンクレジスタのデータリンクでは、ステップR
84〜R86の処理手段となる。
(4) In the data link of the common link register according to the prior art described above, whose reception processing procedure is shown in FIG.
84 to R86.

ステップR8Iにて受信バッファ20の通信種別コード
により、個別データ有を検出した場合は。
If the presence of individual data is detected based on the communication type code of the reception buffer 20 in step R8I.

ステップR32で送信先pc番号が自PC番号と一致す
ることを検知したPCだけが、ステップR83で前記受
信バッファ20内の個別データ送信語数、送信先pc内
送信データ格納アドレスを参照して、個別データをCP
Uユニット部3の指定エリアに転送する。ステップR8
4では、さらに共通系語数から、共通データ有/無を検
出し、共通データ有の場合には、ステップR35でリン
クテーブル情報を前記リンクテーブル26の送信元pc
番号に対応するエリアに設定し、ステップR86にて前
記受信バッファ20内の共通データをリンクテーブル情
報の内容に従い、前記リンクレジスタ25に転送して受
信処理を終了する。
Only the PC that detects that the destination PC number matches its own PC number in step R32 refers to the number of individual data transmission words in the reception buffer 20 and the transmission data storage address in the destination PC in step R83, and Data to CP
Transfer to the designated area of the U unit section 3. Step R8
4, the presence/absence of common data is further detected from the number of common words, and if common data is present, link table information is transferred to the source PC of the link table 26 in step R35.
The area corresponding to the number is set, and in step R86, the common data in the reception buffer 20 is transferred to the link register 25 according to the contents of the link table information, and the reception processing is completed.

以上のデータリンク例で明らかなように、シーケンスプ
ログラム命令にリンク起動プログラムを設け、それによ
る個別データを一定周期で送信されている共通リンクレ
ジスタのデータと容易に結合する手段を設けることによ
り、回線効率、共通リンクレジスタエリアのメモリ効率
を向上できるとともに、オンライン中で、アドレスフリ
ーのデータリンクを可能としたことで、共通リンクレジ
スタエリアを大きく確保できない小型PCでも、大容量
大型PC並のデータリンクができるという効果がある。
As is clear from the above data link example, by providing a link activation program in the sequence program instruction and providing a means to easily combine the individual data resulting from the link activation program with the data of the common link register that is transmitted at a constant cycle, the line In addition to improving the memory efficiency of the common link register area, it also enables address-free data linking while online, allowing even small PCs that cannot secure a large common link register area to perform data links comparable to large-capacity large PCs. It has the effect of being able to.

また、共通リンクレジスタによるデータリンクでは、シ
ーケンスプログラムの実行と非同期のために受信側PC
が参照する他PCの送信レジスタ範囲の内容には同時性
が無く、テキストデータとして取り扱うためには、複雑
なシーケンスプログラムが必要となる。これに対し、リ
ンク起動プログラムによる個別データでは、同時性が保
たれるという効果がある。
In addition, in the data link using the common link register, the receiving PC
There is no simultaneity in the contents of the transmission register range of other PCs that are referenced by the PC, and a complicated sequence program is required to handle them as text data. On the other hand, individual data generated by the link activation program has the effect of maintaining simultaneity.

なお、上記実施例では、個別データの送信は、ある特定
PCに限ったが、通信種別コードの種類を追加し、その
場合の送信先pc番号を予め複数台のPCに設定するグ
ループ番号とすることで、特定複数PCとすることも、
全PCとすることも可能である。
In addition, in the above embodiment, the transmission of individual data was limited to a certain specific PC, but the type of communication type code is added, and the destination PC number in that case is set as a group number that is set in advance to multiple PCs. By doing so, it is also possible to specify multiple PCs.
It is also possible to use all PCs.

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

以上のように、本発明によれば、PCのデータリンクに
おいて、各PCがそれぞれの制御状態に応じて、必要な
時に、必要な他特定PCにデータを送信でき、回線利用
効率、及び内部処理効率が向上する効果がある。
As described above, according to the present invention, in the data link of PCs, each PC can transmit data to other specific PCs when necessary according to its control state, improving line usage efficiency and internal processing. This has the effect of improving efficiency.

また、限られたデータリンク用エリアの制限を受けない
ことにより、データリンク用エリアのメモリ効率が向上
するとともに、同時性を有するテキストデータの送信を
可能としたことでシーケンスプログラムを簡略化できる
効果がある。
In addition, by not being limited by the limited data link area, memory efficiency of the data link area is improved, and sequence programs can be simplified by making it possible to send text data simultaneously. There is.

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

第1図はPCのデータリンク装置の全体構成を示す図、
第2図はリンク起動プログラムの起動方法を示す図、第
3図はデータリンク処理に関連する各種テーブルとデー
タの動きを示す図、第4図はリンク起動プログラムの処
理手順を示す図、第5図はアイドル処理手順を示す図、
第6図は送信処理手順を示す図、第7図は受信処理手順
を示す図である。 21・・・個別データ取込み中フラグ、22・・・個別
データ送信有フラグ。 24・・・送信バッファ、 33・・・ パラメータテーブル、 38・・・リンク起動プログラ 第 2 囚 第 閉 第 S 口 第 図
FIG. 1 is a diagram showing the overall configuration of a PC data link device,
Fig. 2 is a diagram showing the starting method of the link starting program, Fig. 3 is a diagram showing various tables and data movements related to data link processing, Fig. 4 is a diagram showing the processing procedure of the link starting program, and Fig. 5 is a diagram showing the processing procedure of the link starting program. The figure shows the idle processing procedure,
FIG. 6 is a diagram showing the transmission processing procedure, and FIG. 7 is a diagram showing the reception processing procedure. 21...Individual data capture in progress flag, 22...Individual data transmission flag. 24... Transmission buffer, 33... Parameter table, 38... Link activation program 2nd prisoner S mouth figure

Claims (1)

【特許請求の範囲】 1、シーケンスプログラムを格納するシーケンスプログ
ラムメモリと、前記シーケンスプログラムの読出し、実
行を繰り返すシーケンスプログラム処理用CPUと、デ
ータリング処理専用CPUと、全プログラマブルコント
ローラが共有する共通データリンク用リンクレジスタと
、リンクレジスタ割付け情報を格納するリンクテーブル
から成るプログラマブルコントローラ複数台が、シリア
ルバスに接続され、前記リンクテーブルの内容に基づき
、自プログラマブルコントローラに割当ての前記リンク
レジスタの共通データを各プログラマブルコントローラ
が周期的に他の全てのプログラマブルコントローラに対
して送信する共通データ送信手段に、個別データ送信用
パラメータテーブルと、シーケンスプログラムの一命令
としてリンク起動プログラムを設け、シーケンスプログ
ラム実行中に前記パラメータテーブルに書込んだ、送信
先プログラマブルコントローラ番号、送信語数、前記送
信先プログラマブルコントローラのデータ格納アドレス
、及び自プログラマブルコントローラのデータ格納アド
レスに基づき、前記リンク起動プログラムが、編集・準
備した個別データを送信する個別データ送信手段も具備
したことを特徴とするプログラマブルコントローラのデ
ータリンク装置。 2、プログラマブルコントローラのデータリンク装置に
おいて、伝送フレームに通信種別コードを設け、他の全
プログラマブルコントローラに対して送信する共通デー
タと、ある特定のプログラマブルコントローラに対して
送信する個別データを単独あるいは結合して同一伝送フ
レームで送信する手段と、受信した共通データと個別デ
ータを選別する受信手段を具備したことを特徴とするプ
ログラマブルコントローラのデータリンク装置。
[Claims] 1. A sequence program memory that stores a sequence program, a sequence program processing CPU that repeatedly reads and executes the sequence program, a data ring processing dedicated CPU, and a common data link that is shared by all programmable controllers. A plurality of programmable controllers are connected to a serial bus and each programmable controller is connected to a serial bus, and each programmable controller receives the common data of the link register assigned to its own programmable controller based on the contents of the link table. A common data transmission means that a programmable controller periodically transmits to all other programmable controllers is provided with a parameter table for individual data transmission and a link activation program as one command of the sequence program, and the parameter table is provided with a link start program as one command of the sequence program. Based on the destination programmable controller number, the number of words to be sent, the data storage address of the destination programmable controller, and the data storage address of the own programmable controller written in the table, the link startup program sends the edited and prepared individual data. A data link device for a programmable controller, characterized in that it also includes individual data transmission means for transmitting individual data. 2. In the programmable controller data link device, a communication type code is provided in the transmission frame, and the common data sent to all other programmable controllers and the individual data sent to a specific programmable controller are transmitted alone or in combination. 1. A data link device for a programmable controller, comprising means for transmitting data in the same transmission frame, and receiving means for selecting received common data and individual data.
JP26494889A 1989-10-13 1989-10-13 Data link device of programmable controller Pending JPH03127104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26494889A JPH03127104A (en) 1989-10-13 1989-10-13 Data link device of programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26494889A JPH03127104A (en) 1989-10-13 1989-10-13 Data link device of programmable controller

Publications (1)

Publication Number Publication Date
JPH03127104A true JPH03127104A (en) 1991-05-30

Family

ID=17410418

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26494889A Pending JPH03127104A (en) 1989-10-13 1989-10-13 Data link device of programmable controller

Country Status (1)

Country Link
JP (1) JPH03127104A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0512901U (en) * 1991-07-19 1993-02-19 豊田工機株式会社 PC data link device
US5724029A (en) * 1993-06-30 1998-03-03 Toyota Jidosha Kabushiki Kaisha Communication interconnection device with processing interrupt based on token address
JP2007041761A (en) * 2005-08-02 2007-02-15 Jtekt Corp Plc for distributed control and distributed control system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0512901U (en) * 1991-07-19 1993-02-19 豊田工機株式会社 PC data link device
US5724029A (en) * 1993-06-30 1998-03-03 Toyota Jidosha Kabushiki Kaisha Communication interconnection device with processing interrupt based on token address
JP2007041761A (en) * 2005-08-02 2007-02-15 Jtekt Corp Plc for distributed control and distributed control system
US7912558B2 (en) 2005-08-02 2011-03-22 Jtekt Corporation PLC for distributed control and distributed control system
JP4722613B2 (en) * 2005-08-02 2011-07-13 株式会社ジェイテクト Distributed control system

Similar Documents

Publication Publication Date Title
JP2664664B2 (en) Microcomputer and process execution method
US5933347A (en) Industrial controller with program synchronized updating of back-up controller
WO1992015162A1 (en) Method and apparatus for controlling data communication operations within stations of a local area network
US20090125122A1 (en) Method And Apparatus For Providing Redundancy In An Industrial Control System
US4602341A (en) Shared data logger controller and method
JPH03127104A (en) Data link device of programmable controller
JP2008146541A (en) Dma transfer system, dma controller and dma transfer method
CN110161893A (en) The communication means and storage medium of slave device, control system, response data
KR100500742B1 (en) Signal processing device using one or more processing elements
US20030225812A1 (en) Controller for machine
US20030084226A1 (en) Data transmission device
JP2567063B2 (en) Polling method
US6516004B1 (en) HDLC digital data transmission protocol controller
JP3358045B2 (en) Programmable controller
JP3887989B2 (en) Programmable controller and input / output control method thereof
JP3893787B2 (en) Communication method
JPS5922145A (en) Interruption control system
JPH05233525A (en) Input/otuput processor
JPH05241986A (en) Input/output instruction retrying system
JPH04111132A (en) Method and device for control of multi-pointer
JPS63234304A (en) Data link system for multi-pc system
JPS62190544A (en) Higher link unit for programmable controller
JPH03282903A (en) Task control method in communication system for programmable controller
JPH04313137A (en) Parallel processing method
JPH0346852A (en) Protocol setting system