JP3345867B2 - Method of data transfer between programmable controller and computer - Google Patents

Method of data transfer between programmable controller and computer

Info

Publication number
JP3345867B2
JP3345867B2 JP12888995A JP12888995A JP3345867B2 JP 3345867 B2 JP3345867 B2 JP 3345867B2 JP 12888995 A JP12888995 A JP 12888995A JP 12888995 A JP12888995 A JP 12888995A JP 3345867 B2 JP3345867 B2 JP 3345867B2
Authority
JP
Japan
Prior art keywords
computer
data
block
data transfer
information
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
JP12888995A
Other languages
Japanese (ja)
Other versions
JPH08305421A (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.)
Howa Machinery Ltd
Original Assignee
Howa Machinery 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 Howa Machinery Ltd filed Critical Howa Machinery Ltd
Priority to JP12888995A priority Critical patent/JP3345867B2/en
Publication of JPH08305421A publication Critical patent/JPH08305421A/en
Application granted granted Critical
Publication of JP3345867B2 publication Critical patent/JP3345867B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Multi Processors (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、プログラマブルコン
トローラと計算機との間でのデータ授受の単位をプログ
ラマブルコントローラと計算機との間で1回に授受可能
な大きさのデータ授受ブロックとして行うデータ授受の
方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission / reception block in which a unit of data transmission / reception between a programmable controller and a computer is a data transmission / reception block having a size that can be transmitted / received at a time between the programmable controller and the computer. It is about the method.

【0002】[0002]

【従来の技術】従来、プログラマブルコントローラ(以
下PCという)と計算機(コンピュータ)との間でのデ
ータ授受は、ビットデータが連続して成るビット情報ブ
ロック又は数値データが連続して成る数値情報ブロック
を1ブロックずつ送信していた。また、PCと計算機間
の1回のデータ授受で必要とされる時間は、上記情報ブ
ロックの大きさに関係なく、約0.3〜0.5秒かかっ
ていた。
2. Description of the Related Art Conventionally, data exchange between a programmable controller (hereinafter referred to as a PC) and a computer (computer) is performed by using a bit information block consisting of continuous bit data or a numerical information block consisting of continuous numeric data. I was sending one block at a time. The time required for one data transfer between the PC and the computer took about 0.3 to 0.5 seconds, regardless of the size of the information block.

【0003】[0003]

【発明が解決しようとする課題】従来のPCと計算機間
のデータ授受の方法では、PCと計算機間のデータ授受
を情報ブロック毎に1ブロックずつ行っていたため、大
量のデータ授受を行うとPCと計算機間のデータ授受の
回数が多かった。また、1回のデータ授受にかかる時間
はデータ量にかかわらずほぼ一定であるので、このよう
にデータが多くデータ授受の回数が多くなると全ての情
報ブロックを授受するのに多くの時間がかかり、制御遅
れが生じる問題があった。
In the conventional method of exchanging data between a PC and a computer, data exchange between the PC and the computer is performed one block at a time for each information block. The number of data exchanges between computers was large. Also, the time required for one data transfer is almost constant regardless of the data amount. Thus, when the amount of data is large and the number of data transfers is large, it takes much time to transfer all information blocks, There was a problem that control delay occurred.

【0004】本発明の課題は、PCと計算機間のデータ
授受を高速に行うことが可能なデータ授受の方法を提供
することにある。
[0004] It is an object of the present invention to provide a data exchange method capable of exchanging data between a PC and a computer at high speed.

【0005】[0005]

【課題を解決するための手段】そこで本願では、データ
の種類ごとに連続したデータから成る情報ブロックを複
数ブロック、プログラマブルコントローラと計算機との
間で授受する方法であって、計算機とプログラマブルコ
ントローラとの間に通信プログラムを介在させ、計算機
が複数のアプリケーションプログラムを実行する際、ア
プリケーションプログラムで要求する情報ブロックに関
して、通信プログラムは、プログラマブルコントローラ
が計算機との間で一度に授受可能な大きさの、複数の情
報ブロックから成るデータ授受ブロックとして計算機へ
送信するように要求を集約して要求し、その要求に基づ
いて、計算機へ送られてきたデータ授受ブロックが計算
機のデータバッファに格納されたかをフラグバッファ上
の通信フラグの変化によってアプリケーションプログラ
ムが確認して、情報ブロックを取り出すまでの間も、ア
プリケーションプログラムはデータ授受以外の仕事を実
行していることを特徴とする。
Therefore, in the present application, a method for exchanging a plurality of blocks of information composed of continuous data for each type of data between a programmable controller and a computer is described. When a computer executes a plurality of application programs with a communication program interposed between the programmable controller and the information block required by the application program, the communication program has a size that the programmable controller can exchange with the computer at one time. Requests are aggregated and requested to be transmitted to the computer as a data transfer block composed of a plurality of information blocks.Based on the request, the data transfer block sent to the computer is stored in the data buffer of the computer. Communication flag in the flag buffer Change application program is confirmed, even until taking out the information block, the application program and wherein the running job other than the data transfer.

【0006】[0006]

【作用】本発明のPCと計算機間のデータ授受の方法で
は、PCと計算機間のデータ授受を複数の情報ブロック
を集約したPCと計算機間で1回に授受可能な大きさの
データ授受ブロックとしてまとめて授受することによ
り、大量のデータを扱う場合でもデータ授受回数が減少
するので、データ授受に要する時間が減少し、データ授
受を高速に行うことができる。
According to the data transfer method between the PC and the computer according to the present invention, the data transfer between the PC and the computer is performed as a data transfer block of a size that can be transferred at a time between the PC and the computer in which a plurality of information blocks are aggregated. By collectively transmitting and receiving data, the number of times of data transmission and reception is reduced even when a large amount of data is handled, so that the time required for data transmission and reception can be reduced and data transmission and reception can be performed at high speed.

【0007】[0007]

【実施例】次に図において、本願のPCと計算機1間の
データ授受の方法の実施例について説明する。トランス
ファマシン等、工作機械ラインで工作機械を制御してい
るPCに計算機1が通信ライン2で接続されている。P
Cのメモリユニット(図示せず)には、ツールカウン
タ、ワークカウンタ等の数値情報やPC内部のリレーの
ON,OFF等のビット情報が、夫々データの種類ごと
(数値情報、ビット情報ごと)に連続した情報ブロック
Bが予め決められたアドレスに格納されている。本実施
例では、図3に示すようにPCのメモリユニットに同じ
大きさのnブロックの情報ブロックB1〜Bnが連続し
て格納されているとする。また、計算機1は一般的なコ
ンピューターであり、計算機1のメモリ(図示せず)に
は通信プログラムPR3、複数のアプリケーションプロ
グラムPR1,PR2、PCのメモリユニット上に割り
当てられた連続している複数の各情報ブロックB1〜B
nの夫々の開始、終了アドレスが格納されており、ま
た、メモリエリアの一部が通信プログラムPR3の通信
フラグを格納するフラグバッファ3、情報ブロックを格
納するためのデータバッファ4に割り当てられている。
図1に示すように、計算機1内では、通信プログラムP
R3と複数のアプリケーションプログラムPR1,PR
2(本実施例では2つ)が同時に動いており、アプリケ
ーションプログラムPR1,PR2とPCとのデータ授
受は通信プログラムPR3を介して行われる。
Next, an embodiment of a method for exchanging data between the PC and the computer 1 according to the present invention will be described with reference to the drawings. A computer 1 is connected via a communication line 2 to a PC which controls a machine tool on a machine tool line such as a transfer machine. P
The C memory unit (not shown) stores numerical information such as a tool counter and a work counter and bit information such as ON / OFF of a relay inside the PC for each data type (numeric information and bit information). A continuous information block B is stored at a predetermined address. In this embodiment, as shown in FIG. 3, it is assumed that n blocks of information blocks B1 to Bn of the same size are successively stored in the memory unit of the PC. The computer 1 is a general computer, and a memory (not shown) of the computer 1 has a communication program PR3, a plurality of application programs PR1, PR2, and a plurality of continuous programs allocated on a memory unit of the PC. Each information block B1-B
The start and end addresses of n are stored, and a part of the memory area is allocated to a flag buffer 3 for storing a communication flag of the communication program PR3 and a data buffer 4 for storing an information block. .
As shown in FIG. 1, in the computer 1, the communication program P
R3 and multiple application programs PR1, PR
2 (two in this embodiment) are running simultaneously, and data transfer between the application programs PR1 and PR2 and the PC is performed via the communication program PR3.

【0008】PCとアプリケーションプログラムPR
1,PR2のデータ授受はデータ授受ブロックDの単位
で行われ、図2のように、データ授受ブロックDはPC
と計算機1間で1度にデータ授受可能な最大の大きさD
m以内(本実施例では前記情報ブロックの10ブロック
分)の、PCのメモリユニットに格納されたアドレス順
に連続した複数の情報ブロックから成り、データ授受ブ
ロックDを構成する情報ブロックの先頭と末尾の情報ブ
ロックは必ず要求する情報ブロックBであり、計算機1
からの要求に応じて、データ授受ブロックDの大きさは
変化する。
[0008] PC and application program PR
1 and PR2 are performed in units of a data transfer block D. As shown in FIG.
Maximum size D that can transfer data at one time between computer and computer 1
m (in the present embodiment, 10 blocks of the information block), a plurality of information blocks continuous in the order of addresses stored in the memory unit of the PC, and the top and bottom of the information block constituting the data transfer block D The information block is the information block B which is always requested, and
, The size of the data transfer block D changes.

【0009】次に、上記のように構成された本実施例の
作用について図3、図5により説明する。図5に示すよ
うに、計算機1の2つのアプリケーションプログラムP
R1,PR2はPCのデータが必要になると夫々必要な
データを情報ブロックとして通信プログラムPR3に要
求する(ステップS1)。要求後、アプリケーションプ
ログラムPR1,PR2は情報ブロックの取り出しが完
了するまで待っている。通信プログラムPR3は要求さ
れた情報ブロックのアドレスから、どの範囲の情報ブロ
ックをまとめてデータ授受ブロックDとするかを演算す
る(ステップS2)。例えば、アプリケーションプログ
ラムPR1が情報ブロックB3,B5,B7,B8,B
13,B14を要求すると、通信プログラムPR3が情
報ブロックのアドレスを調べ、そのうちで最も小さいア
ドレスを持つ情報ブロックB3から連続してどの要求さ
れた情報ブロックまでがデータ授受可能な最大の大きさ
Dmの範囲内にあるかを計算する。本実施例では大きさ
Dmは、情報ブロック10ブロック分なので、情報ブロ
ックB3〜B12までが大きさDm内に含まれ、その内
の情報ブロックB9以後は要求がないので切り捨て、不
要な情報ブロックB4,B6を含み連続した情報ブロッ
クB3〜B8をデータ授受ブロックD1とし、残りの情
報ブロックB13,B14の中で小さいアドレスを持つ
情報ブロックB13から情報ブロックB14をデータ授
受ブロックD2とする。そして、データ授受ブロックD
1,D2をPCから計算機1へ送信するようにPCに命
令する(ステップS3)。
Next, the operation of the embodiment constructed as described above will be described with reference to FIGS. As shown in FIG. 5, two application programs P of the computer 1
When the PC data is needed, R1 and PR2 each request the required data as an information block to the communication program PR3 (step S1). After the request, the application programs PR1 and PR2 wait until the retrieval of the information block is completed. The communication program PR3 calculates, from the address of the requested information block, a range of information blocks to be collectively used as the data transfer block D (step S2). For example, if the application program PR1 has information blocks B3, B5, B7, B8, B
13 and B14, the communication program PR3 checks the addresses of the information blocks, and from the information block B3 having the smallest address to any of the requested information blocks in succession, the maximum size Dm of which data can be exchanged. Calculate whether it is within the range. In this embodiment, since the size Dm is equivalent to 10 information blocks, the information blocks B3 to B12 are included in the size Dm, and the information block B9 and the subsequent information blocks B9 are discarded because there is no request, and the unnecessary information block B4 is used. , B6 and a continuous information block B3 to B8 are defined as a data exchange block D1, and information blocks B13 to B14 having a smaller address among the remaining information blocks B13 and B14 are defined as a data exchange block D2. And the data transfer block D
The PC is instructed to transmit 1, D2 from the PC to the computer 1 (step S3).

【0010】PCは通信プログラムPR3の命令に従
い、計算機1が要求する複数の情報ブロックを含み、か
つ、計算機1とPC間で一度に授受可能な大きさに区切
った情報ブロックB3〜B8から構成されるデータ授受
ブロックD1を計算機1へ送信し(ステップS4)、通
信プログラムPR3のデータバッファ4にデータ授受ブ
ロックD1が格納されると、通信フラグが「1」となり
(ステップS5)、アプリケーションプログラムPR1
はデータバッファ4から要求した情報ブロックB3,B
5,B7,B8を取り出す(ステップS6)。
The PC includes a plurality of information blocks requested by the computer 1 in accordance with a command of the communication program PR3, and is composed of information blocks B3 to B8 divided into a size that can be exchanged between the computer 1 and the PC at one time. When the data transfer block D1 is transmitted to the computer 1 (step S4) and the data transfer block D1 is stored in the data buffer 4 of the communication program PR3, the communication flag is set to "1" (step S5), and the application program PR1
Are the information blocks B3 and B requested from the data buffer 4.
5, B7 and B8 are taken out (step S6).

【0011】情報ブロックが取り出されると通信フラグ
は「0」となり(ステップS7)、全ての通信が完了し
たかを確認し(ステップS8)、データ授受ブロックD
2が送信されていないのでステップS4でデータ授受ブ
ロックD2がPCから送信され、ステップS5で通信フ
ラグが「1」となり、ステップS6でデータバッファ4
に格納されたデータ授受ブロックD2からアプリケーシ
ョンプログラムPR1が要求した情報ブロックB13,
B14を取り出すと、ステップS7で通信フラグは
「0」となり、ステップS8で通信が完了したことを確
認し、PCと計算機1間のデータ授受が終了する。この
ように、計算機1で要求する複数の情報ブロックを含
み、かつ、PCと計算機1間で一度に授受可能な大きさ
に区切って、データ授受ブロックDを構成して、そのデ
ータ授受ブロック単位でデータ授受を行うので、従来の
ビットまたは数値情報ブロックを1ブロックずつ行って
いたのに比べ、大量なデータを扱う場合でも高速なデー
タ授受ができる。
When the information block is taken out, the communication flag is set to "0" (step S7), and it is confirmed whether or not all communication is completed (step S8).
2 has not been transmitted, the data transfer block D2 is transmitted from the PC in step S4, the communication flag is set to "1" in step S5, and the data buffer 4 is transmitted in step S6.
Blocks B13 requested by the application program PR1 from the data transfer block D2 stored in the
When B14 is taken out, the communication flag is set to "0" in step S7, it is confirmed in step S8 that the communication has been completed, and the data transfer between the PC and the computer 1 ends. As described above, the data transfer block D includes a plurality of information blocks requested by the computer 1 and is divided into a size that can be transferred between the PC and the computer 1 at a time. Since data transmission / reception is performed, high-speed data transmission / reception can be performed even when a large amount of data is handled, as compared with the conventional case where bit or numerical information blocks are performed one block at a time.

【0012】次に、第2の実施例について図4、図6に
より説明する。計算機1の構成は第1の実施例と略同じ
であり、計算機内の通信プログラムは要求のあった情報
ブロックのみからデータ授受ブロックの構成を演算す
る。PCの構成も略同じであるが、更に、PCのメモリ
ユニットには情報ブロックを集約する作業メモリ5が設
けられている。作用について説明する。図6に示すよう
に計算機1の各アプリケーションプログラムPR1,P
R2は通信プログラムPR3に情報ブロックを要求する
(ステップS1)。第1の実施例と同様に、要求後、ア
プリケーションプログラムPR1,PR2は情報ブロッ
クの取り出しが完了するまで待っている。通信プログラ
ムPR3は、アドレスから要求された情報ブロックを集
約してデータ授受ブロックを演算する(ステップS
2)。例えば、アプリケーションプログラムPR1が情
報ブロックB1〜B7,B9,B11を要求すると、通
信プログラムPR3は情報ブロックB1〜B7,B9,
B11,の9個の情報ブロックからデータ授受ブロック
D3を演算する。そして、データ授受ブロックD3を送
信するようにPCに命令する(ステップS3)。
Next, a second embodiment will be described with reference to FIGS. The configuration of the computer 1 is substantially the same as that of the first embodiment, and the communication program in the computer calculates the configuration of the data transfer block only from the requested information block. Although the configuration of the PC is substantially the same, a work memory 5 for collecting information blocks is provided in a memory unit of the PC. The operation will be described. As shown in FIG. 6, each application program PR1, P
R2 requests an information block from the communication program PR3 (step S1). As in the first embodiment, after the request, the application programs PR1 and PR2 wait until the retrieval of the information block is completed. The communication program PR3 calculates the data transfer block by aggregating the information blocks requested from the addresses (step S
2). For example, when the application program PR1 requests the information blocks B1 to B7, B9, B11, the communication program PR3 sets the information blocks B1 to B7, B9,
A data transfer block D3 is calculated from the nine information blocks B11 and B11. Then, it instructs the PC to transmit the data transfer block D3 (step S3).

【0013】PCは計算機1からの命令に従いメモリユ
ニットに格納されている複数の情報ブロックから情報ブ
ロックB1〜B7,B9,B11を取り出し、作業メモ
リ5で情報ブロックB1〜B7,B9,B11をデータ
授受ブロックD3に集約し(ステップS4)、計算機1
へ送信し、データ授受ブロックD3は通信プログラムP
R3のデータバッファ4に格納される(ステップS
5)。
The PC retrieves the information blocks B1 to B7, B9, and B11 from the plurality of information blocks stored in the memory unit in accordance with an instruction from the computer 1, and stores the information blocks B1 to B7, B9, and B11 in the working memory 5 as data. It is collected in the transfer block D3 (step S4), and the computer 1
To the data transfer block D3, and the communication program P
R3 is stored in the data buffer 4 (step S
5).

【0014】通信プログラムPR3のデータバッファ4
にデータ授受ブロックD3が格納されると通信フラグが
「1」となり(ステップS6)、アプリケーションプロ
グラムPR1はデータバッファ4から要求した情報ブロ
ックを取り出す(ステップS7)。アプリケーションプ
ログラムPR1が情報ブロックを取り出すと通信フラグ
は「0」となり(ステップS8)、通信が完了したかを
確認する(ステップS9)。通信が完了していないと、
ステップS4からステップS9を繰り返し、通信の完了
が確認されると、PCと計算機1間のデータ授受は終了
する。このように、要求する情報ブロックだけを集約し
てデータ授受ブロックD3を構成し、データ授受を行う
ので第1実施例に比べて、データ授受ブロック中に不要
な情報ブロックを含まず、より効率良くデータ授受を行
いうる。
Data buffer 4 of communication program PR3
Is stored in the data transfer block D3, the communication flag is set to "1" (step S6), and the application program PR1 extracts the requested information block from the data buffer 4 (step S7). When the application program PR1 retrieves the information block, the communication flag is set to "0" (step S8), and it is confirmed whether the communication has been completed (step S9). If communication is not completed,
Steps S4 to S9 are repeated, and when the completion of the communication is confirmed, the data transfer between the PC and the computer 1 ends. As described above, only the requested information blocks are aggregated to form the data transfer block D3, and the data transfer is performed. Therefore, as compared with the first embodiment, unnecessary data blocks are not included in the data transfer block, and the data transfer block is more efficient. Data can be exchanged.

【0015】次に第3の実施例について説明する。P
C、計算機1の構成は第1の実施例と略同じであるが、
通信プログラムPR3が異なっている。作用について、
図7、図8に従って説明する。計算機1の各アプリケー
ションプログラムPR1,PR2は夫々同時に実行され
ており、情報ブロックが必要になると通信プログラムP
R3に情報ブロックを要求する。アプリケーションプロ
グラムPR1が情報ブロックB1,B3,B5を、アプ
リケーションプログラムPR2が情報ブロックB2,B
4,B8を同時に要求すると(ステップS11)、通信
プログラムPR3はアプリケーションプログラムPR
1,PR2から情報ブロックの要求があることを確認し
(ステップS101)、通信プログラムPR3はアプリ
ケーションプログラムPR1,PR2からの要求をまと
めて情報ブロックB1〜B5,B8が要求されたことを
記憶する(ステップS102)。
Next, a third embodiment will be described. P
C, the configuration of the computer 1 is substantially the same as that of the first embodiment,
The communication program PR3 is different. About action
This will be described with reference to FIGS. Each of the application programs PR1 and PR2 of the computer 1 is executed simultaneously, and when an information block is required, the communication program P
Request information block from R3. The application program PR1 stores information blocks B1, B3 and B5, and the application program PR2 stores information blocks B2 and B5.
4 and B8 at the same time (step S11), the communication program PR3 becomes the application program PR.
1 and PR2 confirm that there is a request for an information block (step S101), and the communication program PR3 collects the requests from the application programs PR1 and PR2 and stores that the information blocks B1 to B5 and B8 have been requested (step S101). Step S102).

【0016】要求を伝えたアプリケーションプログラム
PR1,PR2は、直ちに自体の別の仕事に移る一方、
通信プログラムPR3は第1の実施例と同様に情報ブロ
ックB1〜B5,B8のアドレスからデータ授受ブロッ
クDを演算して情報ブロックB1〜B8をデータ授受ブ
ロックDとし(ステップS103)、PCにデータ授受
ブロックDを送信するように命令する(ステップS10
4)。PCはデータ授受ブロックDをメモリユニットか
ら取り出して計算機1へ送信し、計算機のデータバッフ
ァ4にデータ授受ブロックDが受信記憶されると(ステ
ップS105)、通信フラグが「1」にセットされる
(ステップS106)。
The application programs PR1 and PR2 that have transmitted the request immediately move on to their own other jobs,
As in the first embodiment, the communication program PR3 calculates a data transfer block D from the addresses of the information blocks B1 to B5 and B8 to make the information blocks B1 to B8 a data transfer block D (step S103), and transfers data to and from the PC. Command to transmit block D (step S10)
4). The PC takes out the data transfer block D from the memory unit and transmits it to the computer 1. When the data transfer block D is received and stored in the data buffer 4 of the computer (step S105), the communication flag is set to "1" (step S105). Step S106).

【0017】各アプリケーションプログラムPR1,P
R2は通信プログラムPR3に情報ブロックを要求した
ら、それに対するPCからのデータを取り出すまでの間
も待たずにデータ授受以外の仕事を実行しており、通信
フラグを時々確認し、通信フラグが「1」であると(ス
テップS12)、通信プログラムPR3から情報ブロッ
クを取り出し(ステップS13)、再びアプリケーショ
ンプログラム自体の仕事にもどり、実行を繰り返す。そ
して、各アプリケーションプログラムPR1,PR2が
要求した情報ブロックを取り出し、情報ブロックが取り
出されたことを通信プログラムが確認すると(ステップ
S107)、通信フラグが「0」にリセットされ(ステ
ップS108)、通信が完了したか確認され(ステップ
S109)、PCと計算機1間のデータ授受は終了す
る。
Each application program PR1, P
After requesting the information block from the communication program PR3, R2 performs a task other than data transfer without waiting for data from the PC corresponding to the information block, and checks the communication flag from time to time. (Step S12), the information block is extracted from the communication program PR3 (step S13), and the process returns to the work of the application program itself and repeats the execution. Then, the information blocks requested by each of the application programs PR1 and PR2 are taken out, and when the communication program confirms that the information blocks have been taken out (step S107), the communication flag is reset to “0” (step S108), and the communication is started. It is confirmed whether the process has been completed (step S109), and the data transfer between the PC and the computer 1 ends.

【0018】このように、データ授受の単位をPCと計
算機1との間で1度に授受可能な大きさの複数の情報ブ
ロックから成る、データ授受ブロックDとして授受する
ので高速であり、アプリケーションプログラムPR1,
PR2は通信プログラムPR3がPCと計算機1間でデ
ータ授受の最中でも、データ授受が終了するまで待機し
ておらず、他の仕事を行っており、同時に情報ブロック
の要求があると、1回の通信で複数のアプリケーション
プログラムの要求が満たせるので、異なるアプリケーシ
ョンプログラムでの情報ブロックをまとめて、別々に要
求する第1,2の実施例に比べてより効率が良い。尚、
第2の実施例と同様に、アプリケーションプログラムP
R1,PR2から要求された情報ブロックだけからなる
データ授受ブロックDを構成して、PCと計算機1間で
データ授受を行っても良い。
As described above, since the data transfer unit is transferred as the data transfer block D composed of a plurality of information blocks of a size that can be transferred at a time between the PC and the computer 1 , the data transfer is performed at a high speed. PR1,
Even if the communication program PR3 is exchanging data between the PC and the computer 1, the PR2 does not wait until the data exchange is completed, and performs other work. Since the requests of a plurality of application programs can be satisfied by communication, the efficiency is higher than in the first and second embodiments in which information blocks of different application programs are combined and separately requested. still,
As in the second embodiment, the application program P
A data transfer block D consisting only of information blocks requested by R1 and PR2 may be configured to transfer data between the PC and the computer 1.

【0019】計算機からPCへの情報ブロックのデータ
授受は、PCの書き換えたい情報ブロックを含むデータ
授受ブロックをPCから計算機に送信し、書き換えが必
要な情報ブロックを書き換え、再びこの書き換えた情報
ブロックを含むデータ授受ブロックを計算機からPCへ
送信して行う。尚、計算機と複数のPC間でも本願のデ
ータ授受方法を適応できることは言う迄もない。
The data transfer of the information block from the computer to the PC is performed by transmitting a data transfer block including the information block to be rewritten by the PC from the PC to the computer, rewriting the information block requiring rewriting, and rewriting the rewritten information block. The data transfer block including the data is transmitted from the computer to the PC. It goes without saying that the data transfer method of the present invention can be applied between a computer and a plurality of PCs.

【0020】[0020]

【発明の効果】以上のように本発明のPCと計算機間の
データ授受の方法によれば、PCと計算機間のデータ授
受を複数の情報ブロックを集約してPCと計算機間で1
回に授受可能な大きさのデータ授受ブロックとして授受
することにより、要求された情報ブロックを1度に複数
ブロック授受でき、データ授受回数が減少するので、大
量のデータを扱う場合でもデータ授受に要する時間が減
少し、PCと計算機間のデータ授受が高速になる。この
ように、PCと計算機間のデータ授受が高速に行えるの
で、RS232C等の低速なインターフェイスでも十分
に活用できる。また、要求する情報ブロックだけを集約
してデータ授受ブロックを構成し、データ授受を行う
と、データ授受ブロック中に不要な情報ブロックを含ま
ず、より効率良くデータ授受を行える。更に、夫々のア
プリケーションプログラムが同時に情報ブロックを要求
し、アプリケーションプログラムは通信プログラムがP
Cと計算機1間でデータ授受の最中でも、データ授受が
終了するまで待機せず、他の仕事を実行するようにした
ので、1回の通信で複数のアプリケーションプログラム
の要求が満たせ、異なるアプリケーションプログラムの
情報ブロックをまとめて授受でき、アプリケーションプ
ログラムの実行が停止しないのでより効率が良い。
As described above, according to the method of exchanging data between a PC and a computer according to the present invention, data exchange between a PC and a computer is performed by aggregating a plurality of information blocks to make one data exchange between the PC and the computer.
By transmitting and receiving as a data transfer block of a size that can be transmitted and received at a time, a plurality of requested information blocks can be transmitted and received at one time, and the number of data transmission and reception is reduced. Time is shortened, and data transfer between the PC and the computer becomes faster. As described above, data can be exchanged between the PC and the computer at a high speed, so that a low-speed interface such as RS232C can be sufficiently utilized. Also, if only the requested information blocks are aggregated to form a data transfer block and data transfer is performed, unnecessary data blocks are not included in the data transfer block, and data transfer can be performed more efficiently. Furthermore, each application program requests an information block at the same time, and the application program
Even during data exchange between C and the computer 1, other tasks are executed without waiting until the data exchange is completed. Therefore, the requests of a plurality of application programs can be satisfied by one communication, and different application programs can be satisfied. Can be transmitted and received in a lump, and the execution of the application program does not stop, so that the efficiency is higher.

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

【図1】基本的な構成を示す説明図である。FIG. 1 is an explanatory diagram showing a basic configuration.

【図2】データ授受ブロックの説明図である。FIG. 2 is an explanatory diagram of a data transfer block.

【図3】第1実施例におけるデータ授受の概略を示す説
明図である。
FIG. 3 is an explanatory diagram showing an outline of data transfer in the first embodiment.

【図4】第2実施例におけるデータ授受の概略を示す説
明図である。
FIG. 4 is an explanatory diagram showing an outline of data transfer in a second embodiment.

【図5】第1実施例におけるフローチャート図である。FIG. 5 is a flowchart in the first embodiment.

【図6】第2実施例におけるフローチャート図である。FIG. 6 is a flowchart in the second embodiment.

【図7】第3実施例におけるアプリケーションプログラ
ムのフローチャート図である。
FIG. 7 is a flowchart of an application program according to a third embodiment.

【図8】第3実施例における通信プログラムのフローチ
ャート図である。
FIG. 8 is a flowchart of a communication program in a third embodiment.

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

1 計算機、 3 フラグバッファ、 4 データバッ
ファ、B 情報ブロック、 D データ授受ブロック、
PR1,PR2 アプリケーションプログラム、 PR
3 通信プログラム、PC プログラマブルコントロー
ラ、
1 computer, 3 flag buffer, 4 data buffer, B information block, D data transfer block,
PR1, PR2 Application program, PR
3 communication program, PC programmable controller,

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平7−36370(JP,A) 特開 平7−36365(JP,A) 特開 平2−47755(JP,A) 特開 平5−54003(JP,A) 特開 平5−225120(JP,A) 特開 昭63−254554(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/04 - 19/05 G06F 15/16 - 15/177 682 ────────────────────────────────────────────────── ─── Continuation of front page (56) References JP-A-7-36370 (JP, A) JP-A-7-36365 (JP, A) JP-A-2-47755 (JP, A) JP-A-5-36755 54003 (JP, A) JP-A-5-225120 (JP, A) JP-A-63-254554 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G05B 19/04-19 / 05 G06F 15/16-15/177 682

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データの種類ごとに連続したデータから
成る情報ブロックを複数ブロック、プログラマブルコン
トローラと計算機との間で授受する方法であって、計算
機とプログラマブルコントローラとの間に通信プログラ
ムを介在させ、計算機が複数のアプリケーションプログ
ラムを実行する際、アプリケーションプログラムで要求
する情報ブロックに関して、通信プログラムは、プログ
ラマブルコントローラが計算機との間で一度に授受可能
な大きさの、複数の情報ブロックから成るデータ授受ブ
ロックとして計算機へ送信するように要求を集約して要
求し、その要求に基づいて、計算機へ送られてきたデー
タ授受ブロックが計算機のデータバッファに格納された
かをフラグバッファ上の通信フラグの変化によってアプ
リケーションプログラムが確認して、情報ブロックを取
り出すまでの間も、アプリケーションプログラムはデー
タ授受以外の仕事を実行していることを特徴とするプロ
グラマブルコントローラと計算機間のデータ授受の
法。
(1) From continuous data for each type of data:
Information blocks consisting of multiple
A method of exchanging data between a Troller and a computer.
Communication program between the
The computer intervenes, and the computer
When executing the program, the application program requests
For information blocks that
A ramable controller can be exchanged with the computer at one time
Data exchange block consisting of multiple information blocks
Aggregate requests to send to the computer as a lock
Data sent to the computer based on the request.
Data transfer block is stored in the data buffer of the computer.
Is changed by the change of the communication flag in the flag buffer.
Application program confirms and removes the information block.
Until the application starts, the application program
Towards the exchange of data between the programmable controller and computer, characterized in that running the work other than the data transfer
Law.
JP12888995A 1995-04-28 1995-04-28 Method of data transfer between programmable controller and computer Expired - Lifetime JP3345867B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12888995A JP3345867B2 (en) 1995-04-28 1995-04-28 Method of data transfer between programmable controller and computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12888995A JP3345867B2 (en) 1995-04-28 1995-04-28 Method of data transfer between programmable controller and computer

Publications (2)

Publication Number Publication Date
JPH08305421A JPH08305421A (en) 1996-11-22
JP3345867B2 true JP3345867B2 (en) 2002-11-18

Family

ID=14995864

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12888995A Expired - Lifetime JP3345867B2 (en) 1995-04-28 1995-04-28 Method of data transfer between programmable controller and computer

Country Status (1)

Country Link
JP (1) JP3345867B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106922184B (en) 2014-11-19 2018-09-28 三菱电机株式会社 Control device, control method and the memory for storing program

Also Published As

Publication number Publication date
JPH08305421A (en) 1996-11-22

Similar Documents

Publication Publication Date Title
US4953074A (en) Function-distributed control apparatus
US5802303A (en) Monitor data collecting method for parallel computer system
CN111970249A (en) DPDK-based Modbus protocol implementation method and device
JP3345867B2 (en) Method of data transfer between programmable controller and computer
US5244447A (en) Tool management method
JPS58225422A (en) Data controller
JPS6184710A (en) Nc data transfer method in group control system
JP2848762B2 (en) Data transfer system and method
JP2001318710A (en) System controller and data transmission/reception method in production system
JP3321359B2 (en) Processing control system
JP2003108212A (en) Method and system for automating working with sheet metal
JP2004021516A (en) Controller capable of conducting data transmission and data transmission system including the same
JP3227273B2 (en) Link processing method of programmable controller
JP2605491B2 (en) Equipment management controller
JP2000259523A (en) Data transfer device, lan communication system and data transfer method
JPS60263208A (en) Factory automation system
JPS59116809A (en) Numerical controller
JPH07210214A (en) Control system and processing method for data
JP3607170B2 (en) NC data transfer method and apparatus
TW202141953A (en) Communication device, communication system, communication method and program
JPH01177106A (en) Transmission system for control program
JP2022020837A (en) Controller, control method and program
JPH0126093B2 (en)
JP3450549B2 (en) Image processing method and apparatus
JP2877176B2 (en) SCSI device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090906

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090906

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100906

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100906

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110906

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120906

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130906

Year of fee payment: 11

EXPY Cancellation because of completion of term