JP3227274B2 - Link processing method of programmable controller - Google Patents

Link processing method of programmable controller

Info

Publication number
JP3227274B2
JP3227274B2 JP15578393A JP15578393A JP3227274B2 JP 3227274 B2 JP3227274 B2 JP 3227274B2 JP 15578393 A JP15578393 A JP 15578393A JP 15578393 A JP15578393 A JP 15578393A JP 3227274 B2 JP3227274 B2 JP 3227274B2
Authority
JP
Japan
Prior art keywords
data
copy
link
scan
copying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP15578393A
Other languages
Japanese (ja)
Other versions
JPH0736366A (en
Inventor
英彦 藤川
大 中井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP15578393A priority Critical patent/JP3227274B2/en
Publication of JPH0736366A publication Critical patent/JPH0736366A/en
Application granted granted Critical
Publication of JP3227274B2 publication Critical patent/JP3227274B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプログラマブルコントロ
ーラのリンク処理方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a link processing method for a programmable controller.

【0002】[0002]

【従来の技術】プログラマブルコントローラとコンピュ
ータとの間でリンクを組む場合、リンクユニットを用
い、このリンクユニットを通じてコンピュータとプログ
ラマブルコントローラのCPUユニットとの間でデータ
の授受を行っている。このリンクユニットとCPUユニ
ットとの間のデータの授受は、従来は次のように行って
いた。つまり受信処理においては受信完了の通知をリン
クユニットから受けるとCPUユニットはリンクユニッ
トのバッファ内に格納されていた受信データを全て一括
してCPUユニット内のメモリへ転送複写していた。ま
た送信処理においてはリンクユニットから送信可の通知
を受けると、CPUユニットはCPUユニット内のメモ
リに格納してある送信データを全て一括してリンクユニ
ットのバッファへ転送複写していた。
2. Description of the Related Art When a link is established between a programmable controller and a computer, a link unit is used, and data is exchanged between the computer and the CPU unit of the programmable controller through the link unit. The transmission and reception of data between the link unit and the CPU unit has conventionally been performed as follows. That is, in the receiving process, when receiving the notification of the completion of the reception from the link unit, the CPU unit collectively transfers and copies all the reception data stored in the buffer of the link unit to the memory in the CPU unit. Also, in the transmission process, when the transmission permission is received from the link unit, the CPU unit collectively transfers and copies all transmission data stored in the memory in the CPU unit to the buffer of the link unit.

【0003】[0003]

【発明が解決しようとする課題】上記のようなリンク処
理では、処理を行うスキャンの時間にばらつきが生じ、
容量の大きい時はばらつきが特に大きくなる上に、スキ
ャンタイムが長くなってしまうという問題があった。こ
れにより入出力の応答性の向上や、ツール処理の高速化
は難しかった。
In the link processing as described above, the scanning time for processing varies.
When the capacity is large, there is a problem that the dispersion becomes particularly large and the scan time becomes long. This makes it difficult to improve input / output responsiveness and to speed up tool processing.

【0004】本発明は上述の問題点に鑑みて為されたも
ので、その目的とするところはスキャンの時間のばらつ
きの影響を少なくすることができ、またユーザに応じた
バランスによって処理が行えるプログラマブルコントロ
ーラのリンク処理方式を提供するにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and has as its object to reduce the influence of scan time variations and to perform programmable processing with a balance according to the user. A link processing method of a controller is provided.

【0005】[0005]

【課題を解決するための手段】上述の目的を達成するた
めに請求項1の発明は、CPUユニットの1スキャン当
たりのデータ複写容量を設定自在とし、受信完了の通知
若しくは送信可の通知をリンクユニットから受け取った
CPUユニットはリンクユニットのバッファにデータ格
納メモリから複写する送信データ若しくはリンクユニッ
トのバッファからCPUユニット内のメモリに複写する
受信データの複写処理を予め設定してある上記データ複
写容量分だけ1スキャンで行うともに、スキャン終了
時に残りデータがあれば次の複写先アドレスと複写元先
頭アドレスを次のスキャンの複写処理時に参照するため
にワーク用メモリに退避させ、以後全ての受信データ又
は送信データの複写が完了するまでスキャン毎に複写処
理及び複写先先頭アドレスと複写元先頭アドレスの退避
処理とを繰り返して行い、全ての受信データ又は送信デ
ータの複写が終了した後にリンクユニットに受信要求又
は送信要求を出すプログラマブルコントローラのリンク
処理方式であって、CPUユニットのメモリに高速転送
手段によりデータの授受を行うデータ格納用エリアとダ
ミーエリアとを設け、CPUユニットは受信処理時にお
いて受信完了となった時点よりリンクユニットのバッフ
ァから1スキャン当たりの複写容量分のみをダミーエリ
アに複写する処理を全ての受信データの複写が完了する
までスキャン毎に繰り返し、全ての受信データの複写が
完了した後に、高速転送手段によりダミーエリアからデ
ータエリアに一括複写することを特徴とする。
According to a first aspect of the present invention, a data copy capacity per scan of a CPU unit is freely set, and a notification of reception completion or a notification of transmission permission is linked. The CPU unit received from the unit performs the copy processing of the transmission data copied from the data storage memory in the buffer of the link unit or the reception data copied from the buffer of the link unit to the memory in the CPU unit by the data copy capacity set in advance. only and the monitor performed in a single scan, is retracted any remaining data to the copy source leading address and the next copying Sakia dress work memory to refer to the time of copy processing of the next scan at the end of the scan, all subsequent receiving data or copy process及beauty double Utsushisaki top each scan until copying of the transmission data is completed It was repeated a save processing dress the copy source leading address, the link of the programmable controller to issue all incoming request or transmission request to the link units after copying the received data or transmission data is completed
Processing method, high-speed transfer to the memory of the CPU unit
Data storage area for exchanging data by means
A me area is provided, and the CPU unit is
From the point when reception is completed
Only the copy capacity per scan from the
Copying of all received data is completed.
Repeat every scan until all received data is copied
After completion, the data is deleted from the dummy area by the high-speed transfer means.
It is characterized by batch copying to the data area.

【0006】請求項2の発明は、CPUユニットの1ス
キャン当たりのデータ複写容量を設定自在とし、受信完
了の通知若しくは送信可の通知をリンクユニットから受
け取ったCPUユニットはリンクユニットのバッファに
データ格納メモリから複写する送信データ若しくはリン
クユニットのバッファからCPUユニット内のメモリに
複写する受信データの複写処理を予め設定してある上記
データ複写容量分だけ1スキャンで行うとともに、スキ
ャン終了時に残りデータがあれば次の複写先アドレスと
複写元先頭アドレスを次のスキャンの複写処理時に参照
するためにワーク用メモリに退避させ、以後全ての受信
データ又は送信データの複写が完了するまでスキャン毎
に複写処理及び複写先先頭アドレスと複写元先頭アドレ
スの退避処理とを繰り返して行い、全ての受信データ又
は送信データの複写が終了した後にリンクユニットに受
信要求又は送信要求を出すプログラマブルコントローラ
のリンク処理方式であって、CPUユニットのメモリに
高速転送手段によりデータの授受を行うデータ格納用エ
リアとダミーエリアとを設け、CPUユニットは送信処
理時において送信可となったスキャンの先頭で高速転送
手段により送信データの全てをダミーエリアに一括複写
し、その複写後1スキャン当たりに処理すべき複写容量
分のみダミーエリアからリンクユニットのバッファへ複
写する処理をダミーエリア内の送信データの全ての複写
が終了するまでスキャン毎に繰り返すことを特徴とす
る。
According to a second aspect of the present invention, one of the CPU units
The data copy capacity per scan can be set freely, and
Notification from the link unit
The removed CPU unit is stored in the link unit buffer.
The transmission data or link copied from the data storage memory
From the buffer of the CPU unit to the memory in the CPU unit
The copy processing of the received data to be copied is set in advance.
Perform one scan for the data copy capacity, and
If there is remaining data at the end of the scan,
Refers to the copy source start address when copying in the next scan
To the work memory, and then receive all
Each scan until data or transmission data copying is completed
Copy processing, copy destination top address and copy source top address
Process is repeatedly performed to save all received data or
Is received by the link unit after the transmission data has been copied.
Programmable controller that issues a transmission request or transmission request
In the link processing method, a data storage area for transmitting and receiving data by a high-speed transfer means and a dummy area are provided in the memory of the CPU unit , and the CPU unit performs high-speed processing at the beginning of a scan that is enabled for transmission during transmission processing. The transfer means collectively copies all of the transmission data to the dummy area, and after copying, copies only the copying capacity to be processed per scan from the dummy area to the buffer of the link unit. It is characterized in that it is repeated for each scan until copying is completed.

【0007】[0007]

【0008】[0008]

【作用】請求項1の発明によれば、リンク処理を分割す
ることにより、スキャンの時間を短縮することができ、
リンク処理によるスキャンの時間のばらつきを少なくす
ることができ、これにより入出力の応答の向上、ツール
処理の高速化、その他のリンク処理の高速化が可能とな
る。また1スキャン当たりのデータの複写容量分をユー
ザが設定することができるため、ユーザに応じたバラン
スにて処理実行ができるのである。
According to the first aspect of the present invention, by dividing the link processing, the scan time can be reduced.
Variation in scan time due to link processing can be reduced, thereby improving input / output response, speeding up tool processing, and speeding up other link processing. Further, since the user can set the copy capacity of the data per scan, the processing can be executed in a balance according to the user.

【0009】請求項2又は3の発明では、リンク処理を
分割する際のデータ転送の同時性を保証することができ
る。
According to the second or third aspect of the present invention, it is possible to guarantee the synchronization of data transfer when the link processing is divided.

【0010】[0010]

【実施例】以下、本発明の実施例を図面を参照して説明
する。 (実施例1) 図1は本発明に用いるプログラマブルコントローラの基
本的な構成を示しており、このプログラマブルコントロ
ーラはプログラマブルコントローラの中枢を構成するC
PU1と、このCPU1にアドレスバス、データバス、
制御バスにより接続されて読み書きが制御され、演算メ
モリとしてまたデータメモリとし、更にワークエリア等
として使用されるRAM2、システムの基本動作のプロ
グラムや、或いは固定的なユーザプログラム等が書き込
まれたROM3からなるメモリ部と、外部機器の制御或
いは外部機器からの入力のためのI/O装置4と、プロ
グラマ等の周辺ツール6を接続するためのインターフェ
ース5と、コピュータ9との間でリンクを組むための
リンクユニット7とで構成され、上記CPU1、RAM
2、ROM3はCPUユニット8を構成する。リンクユ
ニット7は送受信データを一時的に格納するバッファ1
0を有する。
Embodiments of the present invention will be described below with reference to the drawings. Embodiment 1 FIG. 1 shows a basic configuration of a programmable controller used in the present invention.
PU1 and an address bus, a data bus,
A read / write is controlled by a control bus, a RAM 2 is used as an operation memory and a data memory, and is used as a work area and the like. A ROM 3 in which a program of a basic operation of the system or a fixed user program is written. a memory unit comprising, a I / O device 4 for input from the control or the external device of the external device, an interface 5 for connecting peripheral tool 6 programmers such, the link with the co-down computer 9 And a link unit 7 for assembling, the CPU 1 and the RAM
2. The ROM 3 constitutes the CPU unit 8. The link unit 7 is a buffer 1 for temporarily storing transmission / reception data.
Has zero.

【0011】以上のような構成によりプログラムコント
ローラは構成されているが、このプロイグラムコントロ
ーラに用いる本発明のリンク処理方式についての実施例
を図2に示すフローチャートに基づいて説明する。まず
ユーザは周辺ツール6等を使用して1スキャン当たりの
複写容量分をセットしておく。このセットデータはRA
M2に格納され、CPU1はこのセットされた内容に基
づいてリンク処理時のデータ複写容量分を決める。
A program controller is constituted by the above-described structure. An embodiment of a link processing method according to the present invention used in the program controller will be described with reference to a flowchart shown in FIG. First, the user sets the copy capacity per scan using the peripheral tool 6 or the like. This set data is RA
The data is stored in M2, and the CPU 1 determines the data copy capacity at the time of link processing based on the set contents.

【0012】さて今実際の複写処理が実行されていない
状態にあると、CPUユニット8では、CPU1の制御
の下、RAM2のワークエリアに受信データの全領域容
量をセットすると共に複写元先頭アドレスと、複写先先
頭アドレスとをセットする。次にリンクユニット7から
受信完了の通知を受け取ると、CPU1はワークエリア
にセットしてある複写元先頭アドレス、複写先先頭アド
レスを取り出し、これらのアドレスを参照にしてリンク
ユニット7のバッファ10から予め設定してある1スキ
ャン当たりの複写容量分のデータを転送させ、RAM2
に複写する。
Now, when the actual copying process is not being executed, the CPU unit 8 sets the total area capacity of the received data in the work area of the RAM 2 under the control of the CPU 1 and controls the copy source top address under the control of the CPU 1. And the copy destination start address are set. Next, upon receiving the notification of the completion of reception from the link unit 7, the CPU 1 extracts the copy source start address and the copy destination start address set in the work area, and refers to these addresses from the buffer 10 of the link unit 7 in advance. The data corresponding to the set copy capacity per scan is transferred to the RAM 2
Copy to

【0013】この複写後このスキャンにおいて全ての受
信データ領域の複写が完了していない場合には、次の複
写元先頭アドレスと複写先先頭アドレスをワークエリア
に退避させるとともに実複写処理中をフラグに反映し、
次のスキャンに対して待機する。以後全ての受信データ
領域の複写が完了するまで上記の複写処理とアドレス退
避処理をスキャン毎に繰り返す。
If the copying of all the received data areas is not completed in this scan after this copying, the next copy source top address and copy destination top address are saved in the work area, and a flag indicating that the actual copy process is in progress is made. Reflect,
Wait for the next scan. Thereafter, the above-described copying processing and address saving processing are repeated for each scan until copying of all the reception data areas is completed.

【0014】全ての受信データ領域の複写が完了する
と、実複写処理完了をフラグに反映させた後、次の受信
要求発行を行って受信処理を終了する。送信処理は、基
本的には受信処理と同じであり、複写先と、複写元が変
わるだけである。つまりリンクユニット7から送信可の
通知があれば、ワークエリアにセットしてある複写元先
頭アドレスと、複写先先頭アドレスとに対応してRAM
2に格納してある送信データをリンクユニット7のバッ
ファに転送複写するのである。勿論1スキャン当たりの
複写容量分はユーザにより設定される。そして全ての送
信データをリンクユニット7側へ転送複写が完了した
後、送信要求はCPU1側からリンクユニット7へ発行
することにより送信処理を終了する。
When the copying of all the received data areas is completed, the completion of the actual copying process is reflected in the flag, the next receiving request is issued, and the receiving process is completed. The transmission process is basically the same as the reception process, except that the copy destination and the copy source are changed. In other words, if there is a notification that transmission is possible from the link unit 7, a RAM corresponding to the copy source start address set in the work area and the copy destination start address is stored in the RAM.
2 is transferred and copied to the buffer of the link unit 7. Of course, the copy capacity per scan is set by the user. After the transfer and copying of all transmission data to the link unit 7 is completed, a transmission request is issued from the CPU 1 to the link unit 7 to end the transmission processing.

【0015】尚データ複写処理時において、複写が完了
する時のスキャンでは1スキャンの複写容量分に満たな
い分だけの複写となる場合がある。。つまり残った領域
最終までの容量分の複写となるのである。ところで上記
実施例のようにリンク処理を分割して行う場合、データ
の同時性保証することが要求される。
In the data copying process, the scan when the copying is completed may be a copy of less than the capacity of one scan. . That is, copying is performed for the capacity up to the end of the remaining area. By the way, when the link processing is performed in a divided manner as in the above-described embodiment, it is required to guarantee data synchronization.

【0016】そこで実現されたのが次に説明する実施例
2である。 (実施例2)図3は本実施例における特徴を示す概念的
な構成を示しており、上記のCPUユニット8のRMA
2に、送信、受信のデータを格納するデータエリアA
と、一時的にデータを格納するダミーエリアBとを設
け、両エリアA,B間のデーアの授受をDMA等の高速
転送手段(図示せず)により行うようにしたものであ
る。
A second embodiment described below has been realized. (Embodiment 2) FIG. 3 shows a conceptual configuration showing the features of the present embodiment.
2 is a data area A for storing transmission and reception data.
And a dummy area B for temporarily storing data, and data transfer between the areas A and B is performed by high-speed transfer means (not shown) such as DMA.

【0017】次に本実施例における受信処理及び送信処
理を図4、図5のフローチャートに基づいて行う。図4
に示す受信処理においてはリンクユニット7からCPU
ユニット8に受信完了の通知があれば、CPU1はまず
RAM2のワークエリアに格納されている複写元先頭ア
ドレスと複写先先頭アドレスに基づいてリンクユニット
7のバッファ10から受信データを1スキャン当たりの
複写容量分だけ、ダミーエリアBのに転送複写する。
Next, reception processing and transmission processing in this embodiment are performed based on the flowcharts of FIGS. FIG.
In the receiving process shown in FIG.
If the unit 8 is notified of the completion of reception, the CPU 1 first copies the received data from the buffer 10 of the link unit 7 per scan based on the copy source start address and the copy destination start address stored in the work area of the RAM 2. Transfer and copy to the dummy area B by the capacity.

【0018】もしこのスキャンで受信データの全領域を
複写できない場合には、上述の実施例と同様に、次の複
写元先頭アドレスと、複写先先頭アドレスをワークエリ
アに退避後、実複写処理実行中をフラグに反映させる。
以後スキャン毎に上記の転送複写処理を受信データの全
領域の複写が完了するまで行う。複写が完了すると、C
PU1はダミーエリアBからDMA等の高速転送手段に
よりデータエリアAに一括複写した後、実複写処理完了
をフラグに反映させ、更に次の受信要求発行を行って受
信処理を終了する。
If the whole area of the received data cannot be copied by this scan, the actual copy processing is executed after the next copy source top address and copy destination top address are saved in the work area as in the above-described embodiment. Reflect the inside to the flag.
Thereafter, the above-described transfer copying process is performed for each scan until copying of the entire area of the received data is completed. When copying is completed, C
The PU 1 collectively copies the data from the dummy area B to the data area A by a high-speed transfer means such as a DMA, reflects the completion of the actual copy processing in a flag, further issues a next reception request, and ends the reception processing.

【0019】図5に示す送信処理では、リンクユニット
7からCPUユニット8に送信可の通知があれば、CP
U1は送信可後の先頭スキャンでまずデータエリアAか
らDMAによりダミーエリアBに全送信データを一括複
写する。この後のスキャンでは、RAM2のワークエリ
アに格納されている複写元先頭アドレスと複写先先頭ア
ドレスに基づいてダミーエリアBから送信データを1ス
キャン当たりの複写容量分だけリンクユニット7のバッ
ファ10のに転送複写する。
In the transmission process shown in FIG. 5, if the link unit 7 notifies the CPU unit 8 that transmission is possible,
U1 first copies all transmission data from the data area A to the dummy area B by DMA in the first scan after transmission is enabled. In the subsequent scan, the transmission data is transferred from the dummy area B to the buffer 10 of the link unit 7 by the copy capacity per scan based on the copy source start address and the copy destination start address stored in the work area of the RAM 2. Transfer and copy.

【0020】もしこのスキャンで送信データの全領域を
複写できない場合には、上述の受信処理と同様に、次の
複写元先頭アドレスと、複写先先頭アドレスをワークエ
リアに退避後、実複写処理実行中をフラグに反映させ
る。以後スキャン毎に上記の転送複写処理を送信データ
の全領域の複写が完了するまで行う。複写が完了する
と、CPU1は実複写処理完了をフラグに反映させ、更
に次の送信要求発行を行って送信処理を終了する。
If the entire area of the transmission data cannot be copied by this scan, the actual copy processing is executed after the next copy source top address and copy destination top address are saved in the work area, as in the above-described reception processing. Reflect the inside to the flag. Thereafter, the above-described transfer copying process is performed for each scan until copying of the entire area of the transmission data is completed. When the copying is completed, the CPU 1 reflects the completion of the actual copying process on the flag, issues the next transmission request, and ends the transmission process.

【0021】尚データ複写処理時において、複写が完了
する時のスキャンでは1スキャンの複写容量分に満たな
い分だけの複写となる場合がある。つまり残った領域最
終までの容量分の複写となるのである。
In the data copying process, a scan when the copying is completed may be a copy of less than the copying capacity of one scan. That is, copying is performed for the capacity up to the end of the remaining area.

【0022】[0022]

【発明の効果】上述の目的を達成するために請求項1の
発明は、CPUユニットの1スキャン当たりのデータ複
写容量を設定自在とし、受信完了の通知若しくは送信可
の通知をリンクユニットから受け取ったCPUユニット
はリンクユニットのバッファにデータ格納メモリから複
写する送信データ若しくはリンクユニットのバッファか
らCPUユニット内のメモリに複写する受信データの複
写処理を予め設定してある上記データ複写容量分だけ1
スキャンで行うともに、スキャン終了時に残りデータ
があれば次の複写先アドレスと複写元先頭アドレスを次
のスキャンの複写処理時に参照するためにワーク用メモ
リに退避させ、以後全ての受信データ又は送信データの
複写が完了するまでスキャン毎に複写処理及び複写先先
頭アドレスと複写元先頭アドレスの退避処理とを繰り返
して行い、全ての受信データ又は送信データの複写が終
了した後にリンクユニットに受信要求又は送信要求を出
プログラマブルコントローラのリンク処理方式であっ
て、CPUユニットのメモリに高速転送手段によりデー
タの授受を行うデータ格納用エリアとダミーエリアとを
設け、CPUユニットは受信処理時において受信完了と
なった時点よりリンクユニットのバッファから1スキャ
ン当たりの複写容量分のみをダミーエリアに複写する処
理を全ての受信データの複写が完了するまでスキャン毎
に繰り返し、全ての受信データの複写が完了した後に、
高速転送手段によりダミーエリアからデータエリアに一
括複写するので、リンク処理が分割処理となってスキャ
ンの時間を短縮することができる上に、リンク処理によ
るスキャンの時間のばらつきを少なくすることができ、
これにより入出力の応答の向上、ツール処理の高速化、
その他のリンク処理の高速化が可能となるという効果が
あり、また1スキャン当たりのデータの複写容量分をユ
ーザが設定することができるため、ユーザに応じたバラ
ンスにて処理実行ができ、さらにリンク処理を分割する
際のデータ転送の同時性を保証することができるという
効果がある。
According to the first aspect of the present invention, the data copy capacity per scan of the CPU unit can be set freely, and a notice of reception completion or a notice of transmission permission is received from the link unit. The CPU unit copies the transmission data to be copied from the data storage memory into the buffer of the link unit or the reception data to be copied from the buffer of the link unit to the memory of the CPU unit by an amount corresponding to the data copy capacity set in advance by 1
And the monitor performs a scan, is retracted any remaining data for the next copying Sakia dress the copy source leading address in the work memory to refer to the time of copy processing of the next scan at the end of the scan, all subsequent receiving data or transmission data copying performed by repeating the copying process及beauty double Utsushisaki start address for each scan to complete the process of saving the copy source leading address, link after the copying of all of the received data or transmission data has been completed The link processing method of the programmable controller that issues a reception request or transmission request to the unit.
Data to the CPU unit memory by high-speed transfer means.
The data storage area for data transfer and the dummy area
The CPU unit determines that reception has been completed during the reception process.
From the link unit buffer
Process to copy only the copy capacity per unit to the dummy area
Scans until all received data has been copied
After the copying of all received data is completed,
High-speed data transfer from dummy area to data area
Since the batch copying is performed, the link processing is divided and the scan time can be reduced, and the scan time variation due to the link processing can be reduced.
This improves the input / output response, speeds up tool processing,
There is an effect that the speed of other link processing can be increased, and the user can set a copy capacity of data per scan, so that the processing can be executed in a balance according to the user, and furthermore, the link can be executed. Split processing
There is an effect that is Ru possible to guarantee the simultaneity of data transfer at the time.

【0023】請求項2の発明は、CPUユニットの1ス
キャン当たりのデータ複写容量を設定自在とし、受信完
了の通知若しくは送信可の通知をリンクユニットから受
け取ったCPUユニットはリンクユニットのバッファに
データ格納メモリから複写する送信データ若しくはリン
クユニットのバッファからCPUユニット内のメモリに
複写する受信データの複写処理を予め設定してある上記
データ複写容量分だけ1スキャンで行うとともに、スキ
ャン終了時に残りデータがあれば次の複写先アドレスと
複写元先頭アドレスを次のスキャンの複写処理時に参照
するためにワーク用メモリに退避させ、以後全ての受信
データ又は送信データの複写が完了するまでスキャン毎
に複写処理及び複写先先頭アドレスと複写元先頭アドレ
スの退避処理とを繰り返して行い、全ての受信データ又
は送信データの複写が終了した後にリンクユニットに受
信要求又は送信要求を出すプログラマブルコントローラ
のリンク処理方式であって、CPUユニットのメモリに
高速転送手段によりデータの授受を行うデータ格納用エ
リアとダミーエリアとを設け、CPUユニットは送信処
理時において送信可となったスキャンの先頭で高速転送
手段により送信データの全てをダミーエリアに一括複写
し、その複写後1スキャン当たりに処理すべき複写容量
分のみダミーエリアからリンクユニットのバッファへ複
写する処理をダミーエリア内の送信データの全ての複写
が終了するまでスキャン毎に繰り返すので、リンク処理
が分割処理となってスキャンの時間を短縮することがで
きる上に、リンク処理によるスキャンの時間のばらつき
を少なくすることができ、これにより入出力の応答の向
上、ツール処理の高速化、その他のリンク処理の高速化
が可能となるという効果があり、また1スキャン当たり
のデータの複写容量分をユーザが設定することができる
ため、ユーザに応じたバランスにて処理実行ができ、さ
らにリンク処理を分割する際のデータ転送の同時性を保
証することができるという効果がある。
According to a second aspect of the present invention, one of the CPU units
The data copy capacity per scan can be set freely, and
Notification from the link unit
The removed CPU unit is stored in the link unit buffer.
The transmission data or link copied from the data storage memory
From the buffer of the CPU unit to the memory in the CPU unit
The copy processing of the received data to be copied is set in advance.
Perform one scan for the data copy capacity, and
If there is remaining data at the end of the scan,
Refers to the copy source start address when copying in the next scan
To the work memory, and then receive all
Each scan until data or transmission data copying is completed
Copy processing, copy destination top address and copy source top address
Process is repeatedly performed to save all received data or
Is received by the link unit after the transmission data has been copied.
Programmable controller that issues a transmission request or transmission request
A data storage area for exchanging data by high-speed transfer means and a dummy area in the memory of the CPU unit, and the CPU unit operates at a high speed at the beginning of a scan that is enabled for transmission during transmission processing. The transfer means collectively copies all of the transmission data to the dummy area, and after copying, copies only the copying capacity to be processed per scan from the dummy area to the buffer of the link unit. Link processing is repeated for each scan until copying is completed.
Is a splitting process, which can reduce scanning time.
In addition, the scanning time varies due to link processing.
Of the input / output response.
Above, faster tool processing, faster other link processing
Has the effect of enabling
User can set the amount of data to be copied
Therefore, processing can be executed in a balance according to the user.
In addition, there is an effect that the simultaneity of data transfer when the link processing is divided can be guaranteed.

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

【図1】本発明方法に用いるプログラマブルコントロー
ラの基本構成図である。
FIG. 1 is a basic configuration diagram of a programmable controller used in the method of the present invention.

【図2】本発明方法の実施例1の受信処理のフローチャ
ートである。
FIG. 2 is a flowchart of a receiving process according to the first embodiment of the method of the present invention.

【図3】本発明方法の実施例2の概念的構成図である。FIG. 3 is a conceptual configuration diagram of Embodiment 2 of the method of the present invention.

【図4】同上の受信処理のフローチャートである。FIG. 4 is a flowchart of a reception process of the embodiment.

【図5】同上の送信処理のフローチャートである。FIG. 5 is a flowchart of a transmission process of the embodiment.

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

1 CPU 2 RAM 3 ROM 4 I/O装置 5 インターフェース 6 周辺ツール 7 リンクユニット 8 CPUユニット 9 コンピュータ DESCRIPTION OF SYMBOLS 1 CPU 2 RAM 3 ROM 4 I / O device 5 Interface 6 Peripheral tool 7 Link unit 8 CPU unit 9 Computer

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G05B 19/05 G06F 17/40 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) G05B 19/05 G06F 17/40

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】CPUユニットの1スキャン当たりのデー
タ複写容量を設定自在とし、受信完了の通知若しくは送
信可の通知をリンクユニットから受け取ったCPUユニ
ットはリンクユニットのバッファにデータ格納メモリか
ら複写する送信データ若しくはリンクユニットのバッフ
ァからCPUユニット内のメモリに複写する受信データ
の複写処理を予め設定してある上記データ複写容量分だ
け1スキャンで行うともに、スキャン終了時に残りデ
ータがあれば次の複写先アドレスと複写元先頭アドレス
を次のスキャンの複写処理時に参照するためにワーク用
メモリに退避させ、以後全ての受信データ又は送信デー
タの複写が完了するまでスキャン毎に複写処理及び複写
先先頭アドレスと複写元先頭アドレスの退避処理とを繰
り返して行い、全ての受信データ又は送信データの複写
が終了した後にリンクユニットに受信要求又は送信要求
を出すプログラマブルコントローラのリンク処理方式で
あって、CPUユニットのメモリに高速転送手段により
データの授受を行うデータ格納用エリアとダミーエリア
とを設け、CPUユニットは受信処理時において受信完
了となった時点よりリンクユニットのバッファから1ス
キャン当たりの複写容量分のみをダミーエリアに複写す
る処理を全ての受信データの複写が完了するまでスキャ
ン毎に繰り返し、全ての受信データの複写が完了した後
に、高速転送手段によりダミーエリアからデータエリア
に一括複写することを特徴とするプログラマブルコント
ローラのリンク処理方式。
The CPU unit, which can freely set the data copy capacity per scan of the CPU unit, receives a notification of completion of reception or a notification of transmission permission from the link unit, and copies the data from the data storage memory to a buffer of the link unit. data or and the monitor performed from the buffer of the link unit in the data copying capacity of only one scan of the copy processing of the received data to be copied in a memory in the CPU unit set in advance, following any remaining data at the end of the scan The copy destination address and copy source top address are saved in the work memory for reference during the copy processing of the next scan, and thereafter, the copy processing and the copy destination are performed for each scan until copying of all the received data or transmitted data is completed. The save process of the start address and the copy source start address is repeatedly performed, In the programmable controller of the link processing system issues a receive request or transmission request to the link units after copying the received data or transmission data is completed in
And high-speed transfer means to the memory of the CPU unit.
Data storage area and dummy area for exchanging data
And the CPU unit completes the reception during the reception process.
From the link unit buffer
Copy only the copy capacity per scan to the dummy area
Scanning until all received data has been copied.
After each copy of received data is completed
In addition, the high-speed transfer means changes the dummy area to the data area
A link processing method for a programmable controller, which performs batch copying on a computer.
【請求項2】CPUユニットの1スキャン当たりのデー
タ複写容量を設定自在とし、受信完了の通知若しくは送
信可の通知をリンクユニットから受け取ったCPUユニ
ットはリンクユニットのバッファにデータ格納メモリか
ら複写する送信データ若しくはリ複写処理及び複写先先
頭アドレスと複写元先頭アドレスの退避処理とを繰り返
して行い、全ての受信データ又は送信データの複写が終
了した後にリンクユニットに受信要求又は送信要求を出
すバッファへ複写する処理をダミーエリア内の送信デー
タのンクユニットのバッファからCPUユニット内のメ
モリに複写する受信データの複写処理を予め設定してあ
る上記データ複写容量分だけ1スキャンで行うととも
に、スキャン終了時に残りデータがあれば次の複写先ア
ドレスと複写元先頭アドレスを次のスキャンの複写処理
時に参照するために ワーク用メモリに退避させ、以後全
ての受信データ又は送信データの複写が完了するまでス
キャン毎に全ての複写が終了するまでスキプログラマブ
ルコントローラのリンク処理方式であって、CPUユニ
ットのメモリに高速転送手段によりデータの授受を行う
データ格納用エリアとダミーエリアとを設け、CPUユ
ニットは送信処理時において送信可となったスキャンの
先頭で高速転送手段により送信データの全てをダミーエ
リアに一括複写し、その複写後1スキャン当たりに処理
すべき複写容量分のみダミーエリアからリンクユニット
のャン毎に繰り返すことを特徴とするプログラマブルコ
ントローラのリンク処理方式。
2. The data per scan of the CPU unit.
Copy capacity can be set freely,
CPU unit that received the notification of the trust from the link unit
Is the data storage memory in the buffer of the link unit?
Data to be copied from the server or re-copy processing and destination
Repeat save process of start address and copy source start address
To complete the copying of all received or transmitted data.
Issue a reception request or transmission request to the link unit.
The process of copying to the buffer
Of the CPU unit from the buffer of the link unit.
The copy processing of the received data to be copied to the memory is set in advance.
To perform in one scan for the above data copy capacity
If there is any remaining data at the end of scanning,
Copy processing of next scan for dress and copy source top address
Is saved to the work memory for future reference.
Wait until all received or transmitted data has been copied.
Programmable until all copies are completed for each scan
In the link processing method of the controller, a data storage area for exchanging data by high-speed transfer means and a dummy area are provided in the memory of the CPU unit. in high-speed transfer means by collectively copied all of the transmission data in the dummy area, features and to pulp programmer repeating only copying capacity of to be processed per scan later copied from the dummy areas for each catcher down link units Link controller link processing method.
JP15578393A 1993-06-25 1993-06-25 Link processing method of programmable controller Expired - Lifetime JP3227274B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15578393A JP3227274B2 (en) 1993-06-25 1993-06-25 Link processing method of programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15578393A JP3227274B2 (en) 1993-06-25 1993-06-25 Link processing method of programmable controller

Publications (2)

Publication Number Publication Date
JPH0736366A JPH0736366A (en) 1995-02-07
JP3227274B2 true JP3227274B2 (en) 2001-11-12

Family

ID=15613323

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15578393A Expired - Lifetime JP3227274B2 (en) 1993-06-25 1993-06-25 Link processing method of programmable controller

Country Status (1)

Country Link
JP (1) JP3227274B2 (en)

Also Published As

Publication number Publication date
JPH0736366A (en) 1995-02-07

Similar Documents

Publication Publication Date Title
US5283872A (en) SCSI device having transfer parameter storage memory blocks which correspond to each apparatus
JP4190476B2 (en) Graphic processor, control processor, and information processing apparatus
JP3227274B2 (en) Link processing method of programmable controller
JPH0238968B2 (en)
JP3110024B2 (en) Memory control system
JP3227273B2 (en) Link processing method of programmable controller
JPH04120652A (en) Parallel processors
JP2999662B2 (en) Print control device and print control method
JP2687716B2 (en) Information processing device
JPS6347864A (en) Inter-memory data transfer method
JP2793258B2 (en) Data setting method for positioning control device
JP3053196B2 (en) Image data raster converter
JP2797653B2 (en) Image data processing device
JP2961542B2 (en) Data processing system
JPS5921051B2 (en) Communication control device
JPS6182260A (en) Input and output interruption control system
JPH07111711B2 (en) Processing end interrupt control system
CN114116589A (en) Sensor data storage system, method, device and medium
JPS638506B2 (en)
JPH01142962A (en) Data transfer control system
JPS58169652A (en) Data transfer controller
JPS6378257A (en) Input-output controller
JPH1185660A (en) Data transfer system
JPS63156263A (en) Maintenance system for adapter
JPH0830465A (en) Message driven type multitask system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010821

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

Free format text: PAYMENT UNTIL: 20070831

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080831

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090831

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090831

Year of fee payment: 8

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20090831

Year of fee payment: 8

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090831

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100831

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110831

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110831

Year of fee payment: 10

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20110831

Year of fee payment: 10

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20110831

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120831

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120831

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130831

Year of fee payment: 12

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20130831

Year of fee payment: 12

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term