JP3349940B2 - Link unit for programmable controller - Google Patents

Link unit for programmable controller

Info

Publication number
JP3349940B2
JP3349940B2 JP00445898A JP445898A JP3349940B2 JP 3349940 B2 JP3349940 B2 JP 3349940B2 JP 00445898 A JP00445898 A JP 00445898A JP 445898 A JP445898 A JP 445898A JP 3349940 B2 JP3349940 B2 JP 3349940B2
Authority
JP
Japan
Prior art keywords
interrupt
unit
programmable controller
link
user
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
JP00445898A
Other languages
Japanese (ja)
Other versions
JPH11202909A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP00445898A priority Critical patent/JP3349940B2/en
Publication of JPH11202909A publication Critical patent/JPH11202909A/en
Application granted granted Critical
Publication of JP3349940B2 publication Critical patent/JP3349940B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、プログラマブル
コントローラ用リンクユニットに関し、特にユーザが記
述する一連のシーケンス処理プログラムを実行する複数
のプログラマブルコントローラ(以下PCと称す)を通
信回線にて接続しリンクデバイスメモリを介してPCど
うしで互いにデータを送受信可能にするリンクユニット
に関するものである
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a link unit for a programmable controller, and more particularly to a link device for connecting a plurality of programmable controllers (hereinafter referred to as PCs) for executing a series of sequence processing programs described by a user through a communication line. The present invention relates to a link unit that enables data to be transmitted and received between PCs via a memory.

【0002】[0002]

【従来の技術】図11は、PCとリンクユニットの従来
例を示している。図11において、100はPCを、2
00はリンクユニットを各々示している。PC100
は、PCOS部101と、ユーザシーケンスプログラム
メモリ部102と、デバイスメモリ部103とを有して
いる。リンクユニット200は、リンクOS部201
と、リンクデバイスメモリ部202と、通信I/F20
3とを有している。
2. Description of the Related Art FIG. 11 shows a conventional example of a PC and a link unit. In FIG. 11, 100 is a PC, 2
00 indicates each link unit. PC100
Has a PCOS unit 101, a user sequence program memory unit 102, and a device memory unit 103. The link unit 200 includes a link OS unit 201
, A link device memory unit 202, and a communication I / F 20.
And 3.

【0003】PC100がユーザシーケンスプログラム
を実行する場合には、PCOS部101がユーザシーケ
ンスプログラムメモリ部102に格納されたユーザシー
ケンスプログラムの内容を随時取り出してそれを直接あ
るいは間接的に実行し、その結果をワークメモリ的にデ
バイスメモリ部103に格納する。ユーザシーケンスプ
ログラムのプログラム本体とプログラムの動作条件であ
るパラメータは、ユーザにより作成され、専用のローダ
を使用してユーザシーケンスプログラムメモリ部102
に格納される。
When the PC 100 executes a user sequence program, the PCOS unit 101 fetches the contents of the user sequence program stored in the user sequence program memory unit 102 at any time and executes it directly or indirectly. Is stored in the device memory unit 103 as a work memory. The program itself of the user sequence program and the parameters that are the operating conditions of the program are created by the user, and the user sequence program memory 102
Is stored in

【0004】各PCはスタンドアロンで機器を制御する
こともあれば、他のPCと協調して機器を制御すること
もあり、通常は後者で使用されることの方が多い。この
場合には、1本の通信回線300により接続されたリン
クユニット200を使用して、それぞれ通信I/F20
3を介して伝送処理が行われる。
[0004] Each PC may control a device in a stand-alone manner, or may control a device in cooperation with another PC, and is usually used in the latter case. In this case, each of the communication I / Fs 20 is connected by using the link unit 200 connected by one communication line 300.
The transmission processing is performed via the communication device 3.

【0005】リンクユニット200のリンクデバイスメ
モリ部202は複数のPCが互いにデータを送受信する
際に使用するリンクデバイスを格納するエリアを確保し
ており、デバイスメモリ部103の内容をリンクデバイ
スメモリ部202に書き写し、デバイスメモリ部103
の内容を通信I/F203を介して通信回線300に送
出することにより、送信処理が行われる。
The link device memory section 202 of the link unit 200 secures an area for storing a link device used when a plurality of PCs transmit and receive data to and from each other, and stores the contents of the device memory section 103 in the link device memory section 202. To the device memory unit 103
Is transmitted to the communication line 300 via the communication I / F 203 to perform transmission processing.

【0006】また同様に他のリンクユニットからのデー
タは逆の手順を通過して(通信回線300、通信I/F
203、リンクデバイスメモリ部202を逆に通過し
て)リンクユニット200に取り込まれたデータをデバ
イスメモリ部103に読み出すにより、受信処理が行わ
れる。
Similarly, data from another link unit passes through the reverse procedure (communication line 300, communication I / F).
The receiving process is performed by reading out the data taken into the link unit 200 into the device memory unit 103 (203, passing through the link device memory unit 202 in reverse).

【0007】これらの送受信処理はリンクOS部201
が行っており、ユーザシーケンスプログラムはリンクデ
バイスを介して他のPCとデータの受け渡しを行う。
[0007] These transmission and reception processes are performed by the link OS unit 201.
The user sequence program exchanges data with another PC via the link device.

【0008】図12は従来例のユーザシーケンスプログ
ラムのリンクデバイスを制御している部分を抜き出した
ものである。ステップ1011は処理1を実行するため
の条件として、あるリンクデバイスの値がある値と一致
した場合に限り実行する場合の記述例を示している。
FIG. 12 shows a portion of a conventional user sequence program which controls a link device. Step 1011 shows a description example in which the process 1 is executed only when the value of a certain link device matches a certain value as a condition for executing the process 1.

【0009】ステップ1011Aは、それの具体例を示
したものであり、リンクデバイス1の内容がH1234
(16進数の1234)に等しければ、信号1をオンす
るという内容を表現している。ステップ1012は処理
2を実行するための条件として、複数のリンクデバイス
の比較演算が全て成立した場合に限り(AND条件)実
行する場合の記述例を示している。
Step 1011A shows a specific example of this, and the content of the link device 1 is H1234.
(1234 in hexadecimal) indicates that the signal 1 is turned on. Step 1012 shows a description example in which the process 2 is executed only when all the comparison operations of a plurality of link devices are satisfied (AND condition).

【0010】ステップ1012Aは、それの具体例を示
したものであり、リンクデバイス1の内容がH1234
(16進数の1234)に等しく、リンクデバイス2の
内容がH5678(16進数の5678)に等しく、リ
ンクデバイス3の内容がH9ABC(16進数の9AB
C)に等しければ、信号1をオンするという内容を表現
している。
[0010] Step 1012A shows a specific example thereof, in which the content of the link device 1 is H1234.
(1234 hexadecimal), the content of link device 2 is equal to H5678 (5678 hexadecimal), and the content of link device 3 is H9ABC (9AB hexadecimal).
If it is equal to C), the content that the signal 1 is turned on is expressed.

【0011】ステップ1013は処理3を実行するため
の条件として、複数のリンクデバイスの比較演算のどれ
か一つが成立した場合に限り(OR条件)実行する場合
の記述例を示している。ステップ1013Aは、それの
具体例を示したものであり、リンクデバイス1の内容が
H1234(16進数の1234)に等しいか、リンク
デバイス2の内容がH5678(16進数の5678)
に等しいか、リンクデバイス3の内容がH9ABC(1
6進数の9ABC)に等しければ、信号1をオンすると
いう内容を表現している。
Step 1013 shows an example of a description for executing the process 3 only when one of the comparison operations of a plurality of link devices is satisfied (OR condition). Step 1013A shows a specific example, in which the content of the link device 1 is equal to H1234 (Hex 1234) or the content of the link device 2 is H5678 (Hex 5678).
Or the content of the link device 3 is H9ABC (1
It expresses that the signal 1 is turned on if it is equal to 9 hexadecimal (ABC).

【0012】[0012]

【発明が解決しようとする課題】ユーザシーケンスプロ
グラムの作成時には、デバイスメモリ部の読み出し、書
き込み(以下、これをデバイスアクセスと称す)を行う
ことは当然のこととし、従来例で触れたように、リンク
デバイスの読み出し、書き込み(以下、これをリンクア
クセスと称す)も、ユーザシーケンスプログラム中には
デバイスアクセスと同様に多数記述されている。
When a user sequence program is created, it is natural to read and write the device memory unit (hereinafter, this will be referred to as device access). The reading and writing of the link device (hereinafter referred to as link access) are also described in the user sequence program in the same number as the device access.

【0013】PCの特性上、ユーザは任意のプログラム
を自由に記述できる代わりに、プログラムの実行タイミ
ングもすべてユーザが管理しなければならない。このこ
とは、他のPCとのデータのやりとりにおいて、他のP
Cから受信したデータの演算タイミングについてもユー
ザの責任でユーザシーケンスプログラムを記述する必要
があるということを意味する。
Due to the characteristics of the PC, the user can freely write an arbitrary program, and the user must also manage all the execution timings of the program. This means that when exchanging data with another PC, the other P
It means that it is necessary for the user to write the user sequence program at the user's responsibility for the operation timing of the data received from C.

【0014】このため、通信回線上のPCやタッチパネ
ル等の外部機器の接続台数が増加すればするほど、ユー
ザシーケンスプログラム上の演算数は増加し、その結果
として、ユーザシーケンスプログラムステップ数の増
加、ユーザシーケンスプログラム実行時間の増加に拍車
が掛かかることになる。このことは、特に、近年、PC
のユーザシーケンスプログラム実行時間の短縮を希望す
るユーザが増えていることに対して対峙する。
Therefore, as the number of connected external devices such as PCs and touch panels on the communication line increases, the number of operations in the user sequence program increases. As a result, the number of user sequence program steps increases, This increases the execution time of the user sequence program. This is especially true in recent years with PC
Against the increase in the number of users who want to reduce the execution time of the user sequence program.

【0015】また、近年は、システムのダウンサイジン
グが昨今の要求の主流であり、ユーザシーケンスプログ
ラムステップ数の増加は、PCに実装するメモリ増加に
つながり、PCの小型化への妨げにもなる。
In recent years, system downsizing has become the mainstream of recent demands, and an increase in the number of user sequence program steps leads to an increase in memory mounted on a PC, which also hinders miniaturization of the PC.

【0016】また、PC等の電子機器の特性として、外
部とのデータ入出力は内部メモリにアクセスする時間よ
りも大幅に大きく、PCの外部に位置するリンクデバイ
スのアクセス増加がユーザシーケンスプログラム実行時
間の増加に与える影響は大きい。
As a characteristic of an electronic device such as a PC, data input / output to / from an external device is significantly longer than access time to an internal memory, and an increase in access of a link device located outside the PC increases a user sequence program execution time. The impact on the increase is large.

【0017】この発明は、上述の如き問題点を解消する
ためになされたもので、ユーザシーケンスプログラムの
開発簡略化でき、ユーザシーケンスプログラムのステ
ップ数、リンクデバイスアクセスを減少でき、ユーザシ
ーケンスプログラムの実行時間を短縮できるPC用のリ
ンクユニットを得ることを目的としている。
The present invention has been made to solve the above-mentioned problems, and can simplify the development of a user sequence program, reduce the number of steps of the user sequence program, reduce the number of link device accesses, and reduce the number of user sequence programs. It is an object of the present invention to obtain a PC link unit that can reduce the execution time.

【0018】[0018]

【課題を解決するための手段】上述の目的を達成するた
めに、この発明によるプログラマブルコントローラ用リ
ンクユニットは、ユーザ記述の一連のシーケンス処理プ
ログラムを実行する複数のプログラマブルコントローラ
どうしをリンクデバイスメモリを介して互いに送受信可
能に接続するプログラマブルコントローラ用リンクユニ
ットにおいて、ユーザシーケンスプログラムに対して発
生させたい割り込みの条件を登録する割り込み発生条件
登録部と、発生させたい割り込みの番号を登録する割り
込み番号登録部と、リンクデバイスメモリの内容と前記
割り込み発生条件登録部に登録された内容とを比較する
比較部と、前記比較部による比較結果が一致した場合に
ユーザシーケンスプログラムに対して割り込みを発生す
る割り込み発生部と、発生した割り込みを識別するため
の割り込み番号をプログラマブルコントローラに通知す
る割り込み番号通知部とを有しているものである。
In order to achieve the above object, a link unit for a programmable controller according to the present invention connects a plurality of programmable controllers executing a series of user-written sequence processing programs via a link device memory. An interrupt generation condition registering section for registering an interrupt condition to be generated for a user sequence program, and an interrupt number registering section for registering an interrupt number to be generated, in a link unit for a programmable controller which is connected to each other so as to be capable of transmitting and receiving. A comparing unit that compares the content of the link device memory with the content registered in the interrupt condition registering unit; and an interrupt generating unit that generates an interrupt to the user sequence program when the comparison result by the comparing unit matches. Is the interrupt number for identifying the generated interrupt as it has the interrupt number notification unit for notifying to the programmable controller.

【0019】また、上述の目的を達成するために、つぎ
の発明によるプログラマブルコントローラ用リンクユニ
ットは、ユーザ記述の一連のシーケンス処理プログラム
を実行する複数のプログラマブルコントローラどうしを
リンクデバイスメモリを介して互いに送受信可能に接続
するプログラマブルコントローラ用リンクユニットにお
いて、ユーザシーケンスプログラムに対して発生させた
い割り込みの条件を複数個登録する割り込み発生条件登
録部と、発生させたい割り込みの番号を登録する割り込
み番号登録部と、リンクデバイスメモリの複数個の内容
と割り込み発生条件登録部の複数個の内容について各々
条件成立の有無の判定を行い、その複数個の判定結果の
論理演算を行う演算部と、前記演算部による論理演算結
果に応じてユーザシーケンスプログラムに対して割り込
みを発生する割り込み発生部と、発生した割り込みを識
別するための割り込み番号をプログラマブルコントロー
ラに通知する割り込み番号通知部とを有しているもので
ある。
To achieve the above object, a link unit for a programmable controller according to the present invention transmits and receives a plurality of programmable controllers executing a series of user-written sequence processing programs to each other via a link device memory. An interrupt generation condition registration unit for registering a plurality of interrupt conditions to be generated for the user sequence program in the link unit for the programmable controller to be connected, an interrupt number registration unit for registering the number of the interrupt to be generated, An arithmetic unit for determining whether a condition is satisfied for each of the plurality of contents of the link device memory and the plurality of contents of the interrupt occurrence condition registration unit, and performing a logical operation on the plurality of determination results; User according to calculation result An interrupt generator for generating an interrupt to over Ken scan program and the interrupt number for identifying the generated interrupt as it has the interrupt number notification unit for notifying to the programmable controller.

【0020】つぎの発明によるプログラマブルコントロ
ーラ用リンクユニットは、上述の発明によるプログラマ
ブルコントローラ用リンクユニットにおいて、前記演算
部と前記割り込み発生部とは、割り込み発生条件登録部
の複数個の条件がすべて成立した場合にのみユーザシー
ケンスプログラムに対して割り込みを発生するよう構成
されているものである。
A link unit for a programmable controller according to the next invention is the link unit for a programmable controller according to the invention described above, wherein the arithmetic unit and the interrupt generation unit satisfy all of a plurality of conditions of an interrupt generation condition registration unit. It is configured to generate an interrupt to the user sequence program only in the case.

【0021】また、上述の目的を達成するために、つぎ
の発明によるプログラマブルコントローラ用リンクユニ
ットは、ユーザ記述の一連のシーケンス処理プログラム
を実行する複数のプログラマブルコントローラどうしを
リンクデバイスメモリを介して互いに送受信可能に接続
するプログラマブルコントローラ用リンクユニットにお
いて、ユーザシーケンスプログラムに対して発生させた
い割り込みの条件と割り込み番号とを組にして複数個登
録する割り込み発生条件・番号登録部と、リンクデバイ
スメモリの複数個の内容と割り込み発生条件・番号登録
部の複数個の割り込み発生条件の内容について各々条件
成立の有無の判定を行い、その複数個の判定結果の論理
演算を行う演算部と、前記演算部による論理演算結果に
応じてユーザシーケンスプログラムに対して割り込みを
発生する割り込み発生部と、発生した割り込みを識別す
るための割り込み番号をプログラマブルコントローラに
通知する割り込み番号通知部とを有しているものであ
る。
According to another aspect of the present invention, there is provided a link unit for a programmable controller which transmits and receives a plurality of programmable controllers executing a series of user-written sequence processing programs via a link device memory. An interrupt generation condition / number registration unit for registering a plurality of pairs of interrupt conditions and interrupt numbers to be generated for a user sequence program in a link unit for a programmable controller to be connected, and a plurality of link device memories An operation unit for determining whether or not the conditions are satisfied for each of the contents of the plurality of interrupt generation conditions of the interrupt generation condition / number registration unit, and performing a logical operation of the plurality of determination results; Depending on the operation result, An interrupt generator for generating an interrupt to Nsu program and the interrupt number for identifying the generated interrupt as it has the interrupt number notification unit for notifying to the programmable controller.

【0022】つぎの発明によるプログラマブルコントロ
ーラ用リンクユニットは、上述の発明によるプログラマ
ブルコントローラ用リンクユニットにおいて、前記演算
部と前記割り込み発生部とは、割り込み発生条件・番号
登録部の複数個の条件の何れか一つでも成立した場合に
ユーザシーケンスプログラムに対して割り込みを発生す
るよう構成されているものである。
A link unit for a programmable controller according to the next invention is the link unit for a programmable controller according to the invention described above, wherein the operation unit and the interrupt generation unit are any of a plurality of conditions of an interrupt generation condition / number registration unit. When at least one of the conditions is satisfied, an interrupt is generated for the user sequence program.

【0023】[0023]

【発明の実施の形態】以下に添付の図を参照して、この
発明に係るプログラマブルコントローラ用リンクユニッ
トの実施の形態を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a link unit for a programmable controller according to the present invention will be described below in detail with reference to the accompanying drawings.

【0024】実施の形態1.図1はこの発明によるプロ
グラマブルコントローラ用リンクユニットの実施の形態
1を示している。図1において、10はPC(プログラ
マブルコントローラ)を、20はリンクユニットを示し
ている。
Embodiment 1 FIG. 1 shows a first embodiment of a link unit for a programmable controller according to the present invention. In FIG. 1, reference numeral 10 denotes a PC (programmable controller), and reference numeral 20 denotes a link unit.

【0025】PC10は、PC内での演算・制御を行う
PCOS部11と、ユーザシーケンスプログラムを格納
するユーザシーケンスプログラムメモリ部12と、PC
OS部11がユーザシーケンスプログラムを実行した途
中経過や実行結果を格納するためのワークメモリとして
使用されるデバイスメモリ部13とを有している。
The PC 10 includes a PCOS section 11 for performing calculations and control in the PC, a user sequence program memory section 12 for storing a user sequence program, and a PC
The OS unit 11 has a device memory unit 13 used as a work memory for storing the progress of execution of the user sequence program and the execution result.

【0026】リンクユニット20は、従来のものと同じ
基本的構成として、他のPCとの交信処理を行うリンク
OS部21と、他のPCとの交信を行うためのリンクデ
バイスを格納するためのリンクデバイスメモリ部22
と、通信回線40とのI/Fを行う通信I/F部23を
有している。
The link unit 20 has the same basic configuration as that of the related art, and stores a link OS unit 21 for performing communication processing with another PC and a link device for performing communication with another PC. Link device memory unit 22
And a communication I / F unit 23 for performing I / F with the communication line 40.

【0027】リンクユニット20は、上述のような構成
要件に加えて、ユーザシーケンスプログラムに対して発
生させたい割り込みの条件を登録する割り込み発生条件
登録部24と、発生させたい割り込み番号(割り込み識
別番号)を登録する割り込み番号登録部25と、リンク
デバイスメモリ部22の内容と割り込み発生条件登録部
24の内容とを比較する比較部26と、比較部26が比
較した結果が割り込み発生条件の内容と一致した場合に
PCOS部11に対して通知する割り込み番号を格納す
る割り込み番号通知部27と割り込みを発生する割り込
み発生部28とを有している。
The link unit 20 includes, in addition to the above-mentioned components, an interrupt condition registering unit 24 for registering an interrupt condition to be generated for the user sequence program, and an interrupt number (interrupt identification number) to be generated. ), A comparison unit 26 that compares the contents of the link device memory unit 22 with the contents of the interruption condition registration unit 24, and the result of comparison by the comparison unit 26 is the contents of the interruption condition. An interrupt number notifying unit 27 for storing an interrupt number to be notified to the PCOS unit 11 when they match, and an interrupt generating unit 28 for generating an interrupt.

【0028】換言すれば、比較部26は、割り込み発生
条件登録部24に登録されている割り込み発生条件の内
容とリンクデバイスメモリ部22の内容とが一致すれ
ば、割り込み番号登録部25に登録されている割り込み
番号を割り込み番号通知部27に書き込み、ユーザシー
ケンスプログラムに対して割り込みを発生する指令信号
を割り込み発生部28へ出力する。
In other words, if the content of the interrupt condition registered in the interrupt condition registering unit 24 matches the content of the link device memory unit 22, the comparing unit 26 registers the interrupt condition in the interrupt number registering unit 25. The interrupt number is written to the interrupt number notifying section 27, and a command signal for generating an interrupt to the user sequence program is output to the interrupt generating section 28.

【0029】なお、図2は、割り込み発生条件登録部2
4と割り込み番号登録部25とに、図12のステップ1
011Aの内容が設定された様子を示している。
FIG. 2 shows the interrupt generation condition registration unit 2
4 and the interrupt number registration unit 25, as shown in FIG.
This shows a state in which the content of 011A is set.

【0030】この割り込み発生条件登録部24と割り込
み番号登録部25の内容は予めユーザが設定する。登録
の方法には、ユーザが、ユーザシーケンスプログラムの
一部に割り込み発生条件登録処理と割り込み番号登録処
理を記述する処理を追加して登録プログラムを実行する
ことによる方法と、ローダを使用してシーケンスプログ
ラムの動作条件を設定するパラメータを作成する際に、
割り込み発生条件と割り込み番号を登録することによる
方法とがある。
The contents of the interrupt condition registering section 24 and the interrupt number registering section 25 are set in advance by the user. The registration method includes a method in which a user adds a process for describing an interrupt occurrence condition registration process and an interrupt number registration process to a part of a user sequence program, and executes the registration program. When creating parameters to set the operating conditions of the program,
There is a method by registering an interrupt generation condition and an interrupt number.

【0031】前者の場合は、リンクデバイスのアクセス
と同様に実施でき、単にアクセスするアドレスが変わる
だけの違いであり、後者の場合は、従来例と同様に、パ
ラメータを作成する際の追加項目として設定する。
The former case can be carried out in the same manner as the access of the link device, and the only difference is that the address to be accessed is changed. In the latter case, as in the conventional example, it is an additional item when creating the parameter. Set.

【0032】つぎに、図3を参照して上述の構成による
リンクユニットの動作フローを説明する。リンクOS部
21は従来のものと同じ一連の伝送処理を行い(ステッ
プS11)、伝送処理完了時に比較部26にてリンクデ
バイスメモリ部22の内容と割り込み発生条件登録部2
4に登録されている内容とを比較する(ステップS1
2)。比較部26における比較処理は、純粋に比較した
内容が一致するか、しないかで結果を判断する。
Next, an operation flow of the link unit having the above configuration will be described with reference to FIG. The link OS unit 21 performs the same series of transmission processing as the conventional one (step S11), and when the transmission processing is completed, the comparison unit 26 causes the contents of the link device memory unit 22 and the interrupt occurrence condition registration unit 2
4 (step S1).
2). The comparison process in the comparison unit 26 determines the result based on whether or not the contents of the pure comparison match.

【0033】比較結果が“一致”であれば(ステップS
13肯定)、割り込み番号登録部25からユーザ設定の
割り込み番号を読み出し(ステップS14)、これを割
り込み番号通知部27に書き込むことにより(ステップ
S15)、PCOS部11に割り込み番号を通知し、割
り込みを発生する(ステップS16)。
If the comparison result is "match" (step S
13 is affirmative), the user-set interrupt number is read from the interrupt number registration unit 25 (step S14), and is written to the interrupt number notifying unit 27 (step S15), so that the PCOS unit 11 is notified of the interrupt number and This occurs (step S16).

【0034】ここでは、リンクOS部21はPC10に
現在実行しているユーザシーケンスプログラムを一時停
止させるきっかけを与えるだけであるから、割り込み発
生完了の後には、ステップS11に戻って伝送処理を行
う。なお、比較結果が“一致”でない場合には(ステッ
プS13否定)、直ちにステップS11に戻って伝送処
理を行う。
Here, since the link OS unit 21 only gives the PC 10 an opportunity to temporarily stop the currently executed user sequence program, the process returns to step S11 to perform the transmission process after the completion of the interrupt. If the comparison result is not “match” (No at Step S13), the process immediately returns to Step S11 to perform the transmission process.

【0035】割り込みを受け付けたPCOS部11は、
現在実行しているユーザシーケンスプログラムを一旦中
止して、割り込み番号通知部27の内容を読み出し、ユ
ーザシーケンスプログラムに対して割り込み番号に応じ
た割り込みを発行し、ユーザが記述した割り込みプログ
ラムを実行する。
The PCOS unit 11 that has accepted the interrupt,
The currently executed user sequence program is temporarily stopped, the contents of the interrupt number notifying section 27 are read, an interrupt is issued to the user sequence program according to the interrupt number, and the interrupt program written by the user is executed.

【0036】上述のような構成により、ユーザがユーザ
シーケンスプログラム内にわざわざ比較処理プログラム
を記述しなくても、リンクユニット内部に割り込み発生
条件を登録するだけで、比較処理が実行されるので、ユ
ーザシーケンスプログラムに比較処理の内容を記述する
必要がなくなり(図10のステップS41参照)、プロ
グラムステップ数の削減が図られる。また、PCOS部
11は比較処理を実行する必要がなくなるため、シーケ
ンススキャンタイムの短縮が図られる。
With the above-described configuration, the comparison process is executed only by registering the interrupt generation condition in the link unit without the user having to separately write the comparison processing program in the user sequence program. It is not necessary to describe the contents of the comparison processing in the sequence program (see step S41 in FIG. 10), and the number of program steps can be reduced. Further, since the PCOS unit 11 does not need to execute the comparison process, the sequence scan time can be reduced.

【0037】実施の形態2.図4はこの発明によるプロ
グラマブルコントローラ用リンクユニットの実施の形態
2を示している。なお、図4において、図1に対応する
部分は、図1に付した符号と同一の符号を付けて、その
説明を省略する。
Embodiment 2 FIG. 4 shows a second embodiment of the link unit for a programmable controller according to the present invention. In FIG. 4, portions corresponding to those in FIG. 1 are denoted by the same reference numerals as those in FIG. 1, and description thereof will be omitted.

【0038】この実施の形態では、割り込み発生条件登
録部24は、複数個の割り込み発生条件登録エリヤ24
1 〜24n を有し、その割り込み発生条件登録エリヤ2
1〜24n の各々に割り込み発生条件1〜nを登録さ
れる割り込み発生条件テーブルをなしており、ユーザシ
ーケンスプログラムに対して発生させたい割り込みの条
件を複数個登録できるようになっている。
In this embodiment, the interrupt condition registering section 24 includes a plurality of interrupt condition register areas 24.
1 to 24 n and its interrupt generation condition registration area 2
4 1 and forms a to 24 n each interrupt generation condition table registered the interrupt generation condition 1~n of, and to be able plurality registering interrupts condition to be generated to the user sequence program.

【0039】また、この実施の形態では、比較部26に
代えて演算部29が設けられている。演算部29は、リ
ンクデバイスメモリ部22の複数個の内容と割り込み発
生条件登録部24の複数個の内容について各々条件成立
の有無の判定を行い、その複数個の判定結果の論理演算
を行い、たとえば、AND論理演算を行い、複数個の割
り込み発生条件がすべて成立した場合にのみ、割り込み
番号登録部25に登録されている割り込み番号を割り込
み番号通知部27に書き込み、ユーザシーケンスプログ
ラムに対して割り込みを発生する指令信号を割り込み発
生部28へ出力する。
In this embodiment, an operation unit 29 is provided instead of the comparison unit 26. The operation unit 29 determines whether or not a condition is satisfied for each of the plurality of contents of the link device memory unit 22 and the plurality of contents of the interrupt occurrence condition registration unit 24, and performs a logical operation on the plurality of determination results. For example, an AND logic operation is performed, and only when all of a plurality of interrupt occurrence conditions are satisfied, the interrupt number registered in the interrupt number registering unit 25 is written to the interrupt number notifying unit 27, and the interrupt to the user sequence program is performed. Is output to the interrupt generation unit 28.

【0040】なお、図5は、割り込み発生条件登録部2
4と割り込み番号登録部25とに、図12のステップ1
012Aの内容が設定された様子を示している。
FIG. 5 shows an interrupt generation condition registration unit 2
4 and the interrupt number registration unit 25, as shown in FIG.
12 shows a state in which the content of 012A is set.

【0041】つぎに、図6を参照して上述の構成による
リンクユニットの動作フローを説明する。リンクOS部
21は従来のものと同様に一連の伝送処理を行い(ステ
ップS21)、伝送処理完了時に演算部29にて条件1
の演算を行う(ステップS22)。条件成立を確認し、
成立していなければ(ステップS23否定)、それ以降
の演算を行う必要がないため、ステップS21に戻り、
一連の伝送処理を再開する。
Next, an operation flow of the link unit having the above configuration will be described with reference to FIG. The link OS unit 21 performs a series of transmission processes in the same manner as the conventional one (step S21).
Is calculated (step S22). Check that the condition is satisfied,
If the condition is not satisfied (No at Step S23), there is no need to perform the subsequent calculations, and the process returns to Step S21.
A series of transmission processing is restarted.

【0042】これに対し、条件が成立している場合には
(ステップS23肯定)、つぎに、他の条件が登録され
ているか確認する(ステップS24)。他の条件があれ
ば、演算部29にてつぎの条件の演算を行い(ステップ
S25)、ステップS23に戻ってつぎの条件の成立を
確認する。
On the other hand, if the condition is satisfied (Yes at step S23), it is checked whether another condition is registered (step S24). If there is another condition, the calculation unit 29 calculates the next condition (step S25), and returns to step S23 to check whether the next condition is satisfied.

【0043】すべて条件が成立し、演算すべき条件がな
くなるか、あるいは条件が成立しなくなるまでループす
る。すべて条件が成立し、演算すべき条件がなくなった
と判断した場合には(ステップS24肯定)、実施の形
態1における場合と同様に、割り込み番号登録部25か
らユーザ設定の割り込み番号を読み出し(ステップS2
6)、これを割り込み番号通知部27に書き込むことに
より(ステップS27)、PCOS部11に割り込み番
号を通知し、割り込みを発生する(ステップS28)。
A loop is performed until all the conditions are satisfied and there are no more conditions to be calculated or the conditions are no longer satisfied. When it is determined that all the conditions are satisfied and there are no more conditions to be calculated (Yes at step S24), the user-set interrupt number is read from the interrupt number register 25 as in the first embodiment (step S2).
6) By writing this in the interrupt number notifying section 27 (step S27), the interrupt number is notified to the PCOS section 11 and an interrupt is generated (step S28).

【0044】上述のような構成により、ユーザがユーザ
シーケンスプログラム内にわざわざ比較処理プログラム
を記述しなくても、リンクユニット内部に複数個の割り
込み発生条件を登録するだけで、複数個の割り込み発生
条件がすべて成立した場合など、リンクユニット内部で
の論理演算結果により所定のタイミングで割り込みをP
COS部に対して発生することができ、ユーザシーケン
スプログラムに論理演算処理の内容を記述する必要がな
くなり(図10のステップS42参照)、プログラムス
テップ数の削減が図られる。また、PCOS部11は論
理演算処理を実行する必要がなくなるため、シーケンス
スキャンタイムの短縮が図られる。
According to the above-described configuration, even if the user does not bother to write the comparison processing program in the user sequence program, the user can register a plurality of interrupt generation conditions in the link unit, and can register the plurality of interrupt generation conditions. When all the conditions are satisfied, an interrupt is generated at a predetermined timing according to the result of the logical operation inside the link unit.
This can be generated for the COS unit, and there is no need to describe the contents of the logical operation processing in the user sequence program (see step S42 in FIG. 10), and the number of program steps can be reduced. Further, since the PCOS unit 11 does not need to execute the logical operation processing, the sequence scan time can be reduced.

【0045】実施の形態3.図7はこの発明によるプロ
グラマブルコントローラ用リンクユニットの実施の形態
3を示している。なお、図7において、図1、図4に対
応する部分は、図1、図4に付した符号と同一の符号を
付けて、その説明を省略する。
Embodiment 3 FIG. 7 shows a third embodiment of the link unit for a programmable controller according to the present invention. In FIG. 7, portions corresponding to FIGS. 1 and 4 are denoted by the same reference numerals as those in FIGS. 1 and 4, and description thereof is omitted.

【0046】この実施の形態では、実施の形態1におけ
る割り込み発生条件登録部24と割り込み番号登録部2
5とを統合したような割り込み発生条件・番号登録部3
0が設けられている。
In this embodiment, the interrupt occurrence condition registration unit 24 and the interrupt number registration unit 2 in the first embodiment
Interruption condition / number registration unit 3 that integrates 5 and 5
0 is provided.

【0047】割り込み発生条件・番号登録部30は、複
数個の割り込み発生条件・番号登録エリヤ301 〜30
n を有し、割り込み発生条件・番号登録エリヤ301
30 n の各々に割り込み発生条件と割り込み番号とを一
組にして登録される割り込み発生条件テーブルをなして
おり、ユーザシーケンスプログラムに対して発生させた
い割り込みの条件を複数個登録できるようになってい
る。
The interrupt condition / number registration unit 30 stores
Several interrupt generation conditions / number registration area 301~ 30
nAnd an interrupt generation condition / number registration area 301~
30 nThe interrupt generation condition and interrupt number for each
Create an interrupt generation condition table registered as a set
Generated for the user sequence program
Multiple interrupt conditions can be registered.
You.

【0048】演算部29は、リンクデバイスメモリ部2
2の内容と割り込み発生条件・番号登録部30の複数個
の割り込み発生条件の内容について各々条件成立の有無
の判定を行い、その複数個の判定結果の論理演算を行
い、たとえば、OR論理演算を行い、複数個の割り込み
発生条件の何れか一つでも成立した場合には、割り込み
発生条件・番号登録部30に登録されている割り込み番
号(条件が成立した組の割り込み番号)を割り込み番号
通知部27に書き込み、ユーザシーケンスプログラムに
対して割り込みを発生する指令信号を割り込み発生部2
8へ出力する。
The operation unit 29 is provided in the link device memory unit 2
2 and the contents of the plurality of interrupt occurrence conditions of the interrupt occurrence condition / number registration unit 30 are determined as to whether or not the conditions are satisfied, and a logical operation of the plurality of determination results is performed. If any one of the plurality of interrupt generation conditions is satisfied, the interrupt number registered in the interrupt generation condition / number registration unit 30 (the interrupt number of the group where the condition is satisfied) is notified to the interrupt number notification unit. 27, and outputs a command signal for generating an interrupt to the user sequence program to the interrupt generation unit 2.
8 is output.

【0049】なお、図8は、割り込み発生条件・番号登
録部30に、図12のステップ1013Aの内容が設定
された様子を示している。
FIG. 8 shows how the contents of step 1013A in FIG. 12 are set in the interrupt condition / number registration unit 30.

【0050】つぎに、図9を参照して上述の構成による
リンクユニットの動作フローを説明する。リンクOS部
21は従来のものと同様に一連の伝送処理を行い(ステ
ップS31)、伝送処理完了時に演算部29にて条件1
の演算を行う(ステップS32)。条件成立を確認し、
成立していれば(ステップS33肯定)、割り込み発生
条件・番号登録部30から対応する条件(この場合、条
件1)の割り込み番号を読み出し(ステップS36)、
これを割り込み番号通知部27に書き込むことにより
(ステップS37)、PCOS部11に割り込み番号を
通知し、割り込みを発生する(ステップS38)。
Next, an operation flow of the link unit having the above configuration will be described with reference to FIG. The link OS unit 21 performs a series of transmission processing in the same manner as the conventional one (step S31).
(Step S32). Check that the condition is satisfied,
If the condition is satisfied (Yes at Step S33), the interrupt number of the corresponding condition (condition 1 in this case) is read from the interrupt occurrence condition / number registering unit 30 (Step S36),
By writing this interrupt number notification unit 27 (step S 37), notifies the interrupt number to the PCOS unit 11, generates an interrupt (step S38).

【0051】これに対し、条件が成立していなければ
(ステップS33否定)、つぎに、他の条件が登録され
ているか確認する(ステップS34)。他の条件があれ
ば、演算部29にてつぎの条件の演算を行い(ステップ
S35)、ステップS33に戻ってつぎの条件の成立を
確認する。
On the other hand, if the condition is not satisfied (No at Step S33), it is checked whether another condition is registered (Step S34). If there is another condition, the calculation unit 29 calculates the next condition (step S35), and returns to step S33 to check whether the next condition is satisfied.

【0052】以下、演算すべき条件がなくなるまで、あ
るいは一つでも演算した結果が条件成立するまでループ
する。この場合、複数ある条件は設定された順に論理演
行うため、最初に記述されたものが最も優先度が高
い。
Thereafter, a loop is performed until there are no more conditions to be operated, or until at least one operation result is satisfied. In this case, a plurality of conditions for performing logic operations in the order they are set, the higher highest priority to that first described.

【0053】上述のような構成により、ユーザがユーザ
シーケンスプログラム内にわざわざ比較処理プログラム
を記述しなくても、リンクユニット内部に複数個の割り
込み発生・番号条件を登録するだけで、複数個の割り込
み発生条件の一つでも成立した場合など、リンクユニッ
ト内部での論理演算結果により所定のタイミングで割り
込みをPCOS部に対して発生することができ、ユーザ
シーケンスプログラムに論理演算処理の内容を記述する
必要がなくなり(図10参照)、プログラムステップ数
の削減が図られる。また、PCOS部11は論理演算処
理を実行する必要がなくなるため、シーケンススキャン
タイムの短縮が図られる。
With the above-described configuration, even if the user does not bother to write the comparison processing program in the user sequence program, only by registering a plurality of interrupt occurrence / number conditions in the link unit, a plurality of interrupts can be obtained. An interrupt can be generated to the PCOS unit at a predetermined timing according to the result of the logical operation inside the link unit, such as when one of the conditions occurs, and the contents of the logical operation processing must be described in the user sequence program Is eliminated (see FIG. 10), and the number of program steps is reduced. Further, since the PCOS unit 11 does not need to execute the logical operation processing, the sequence scan time can be reduced.

【0054】なお、図10において、ステップS41〜
ステップS43は割り込み番号1〜3のものを示してい
る。
In FIG. 10, steps S41 to S41 are performed.
Step S43 shows interrupt numbers 1 to 3.

【0055】[0055]

【発明の効果】以上の説明から理解される如く、この発
明によるプログラマブルコントローラ用リンクユニット
によれば、ユーザがユーザシーケンスプログラム内にわ
ざわざ比較処理プログラムを記述しなくても、リンクユ
ニット内部に割り込み発生条件を登録するだけで、比較
処理が実行されるので、ユーザシーケンスプログラムに
比較処理の内容を記述する必要がなくなり、プログラム
ステップ数の削減が図られ、また、プログラマブルコン
トローラ側で比較処理を実行する必要がなくなるため、
シーケンススキャンタイムの短縮が図られる。
As can be understood from the above description, according to the link unit for a programmable controller according to the present invention, an interrupt can be generated in the link unit even if the user does not bother to write the comparison processing program in the user sequence program. Since the comparison process is executed only by registering the conditions, the content of the comparison process need not be described in the user sequence program, the number of program steps can be reduced, and the comparison process is executed on the programmable controller side. Because there ’s no need to
The sequence scan time can be reduced.

【0056】これにより、常時、プログラマブルコント
ローラの実行とは非同期に最新のリンクデバイスデータ
にて比較ができ、かつユーザはユーザシーケンスプログ
ラム上にタイミングを気にしてプログラムを記述すると
いった煩わしさから解放され、プログラム簡略化、効率
化が図られ、またステップ数の減少により、プログラマ
ブルコントローラの低コスト化、小型化、シーケンス実
行の短縮が可能となる。
As a result, the latest link device data can always be compared asynchronously with the execution of the programmable controller, and the user is free from the trouble of writing the program on the user sequence program with care of the timing. In addition, the program can be simplified and the efficiency can be improved, and the reduction in the number of steps makes it possible to reduce the cost, size, and sequence execution of the programmable controller.

【0057】つぎの発明によるプログラマブルコントロ
ーラ用リンクユニットによれば、ユーザがユーザシーケ
ンスプログラム内にわざわざ比較処理プログラムを記述
しなくても、リンクユニット内部に複数個の割り込み発
生条件を登録するだけで、複数個の割り込み発生条件が
すべて成立した場合など、リンクユニット内部での論理
演算結果により所定のタイミングで割り込みをPCOS
部に対して発生することができ、ユーザシーケンスプロ
グラムに論理演算処理の内容を記述する必要がなくな
り、プログラムステップ数の削減が図られる。また、P
COS部は論理演算処理を実行する必要がなくなるた
め、シーケンススキャンタイムの短縮が図られる。
According to the link unit for a programmable controller according to the next invention, even if the user does not bother to write the comparison processing program in the user sequence program, the user only needs to register a plurality of interrupt generation conditions in the link unit. PCOS issues an interrupt at a predetermined timing based on the result of a logical operation inside the link unit, such as when all of a plurality of interrupt occurrence conditions are satisfied.
This can be generated for a unit, and it is not necessary to describe the contents of logical operation processing in a user sequence program, and the number of program steps can be reduced. Also, P
Since the COS unit does not need to execute the logical operation processing, the sequence scan time can be reduced.

【0058】これにより、常時、プログラマブルコント
ローラの実行とは非同期に最新のリンクデバイスデータ
にて演算ができ、かつユーザはユーザシーケンスプログ
ラム上にタイミングを気にしてプログラムを記述すると
いった煩わしさから解放され、プログラム簡略化、効率
化が図られ、またステップ数の減少により、プログラマ
ブルコントローラの低コスト化、小型化、シーケンス実
行の短縮が可能となる。
As a result, the operation can always be performed with the latest link device data asynchronously with the execution of the programmable controller, and the user is free from the trouble of writing the program on the user sequence program with care of the timing. In addition, the program can be simplified and the efficiency can be improved, and the reduction in the number of steps makes it possible to reduce the cost, size, and sequence execution of the programmable controller.

【0059】つぎの発明によるプログラマブルコントロ
ーラ用リンクユニットによれば、ユーザがユーザシーケ
ンスプログラム内にわざわざ比較処理プログラムを記述
しなくても、リンクユニット内部に複数個の割り込み発
生条件を登録するだけで、複数個の割り込み発生条件が
すべて成立した場合にのみ所定のタイミングで割り込み
をPCOS部に対して発生することができ、ユーザシー
ケンスプログラムに論理演算処理の内容を記述する必要
がなくなり、プログラムステップ数の削減が図られる。
また、PCOS部は論理演算処理を実行する必要がなく
なるため、シーケンススキャンタイムの短縮が図られ
る。また、プログラマブルコントローラ側で演算処理を
実行する必要がなくなるため、シーケンススキャンタイ
ムの短縮が図られる。
According to the link unit for a programmable controller according to the next invention, even if the user does not bother to write the comparison processing program in the user sequence program, only a plurality of interrupt generation conditions are registered in the link unit. An interrupt can be generated to the PCOS unit at a predetermined timing only when all of a plurality of interrupt generation conditions are satisfied, and there is no need to describe the contents of the logical operation processing in the user sequence program. Reduction is achieved.
Further, since the PCOS section does not need to execute the logical operation processing, the sequence scan time can be reduced. Further, since it is not necessary to execute the arithmetic processing on the programmable controller side, the sequence scan time can be reduced.

【0060】これにより、常時、プログラマブルコント
ローラの実行とは非同期に最新のリンクデバイスデータ
にて演算ができ、かつユーザはユーザシーケンスプログ
ラム上にタイミングを気にしてプログラムを記述すると
いった煩わしさから解放され、プログラム簡略化、効率
化が図られ、またステップ数の減少により、プログラマ
ブルコントローラの低コスト化、小型化、シーケンス実
行の短縮が可能となる。
As a result, the latest link device data can always be calculated asynchronously with the execution of the programmable controller, and the user is free from the trouble of writing a program on a user sequence program while paying attention to the timing. In addition, the program can be simplified and the efficiency can be improved, and the reduction in the number of steps makes it possible to reduce the cost, size, and sequence execution of the programmable controller.

【0061】つぎの発明によるプログラマブルコントロ
ーラ用リンクユニットによれば、ユーザがユーザシーケ
ンスプログラム内にわざわざ比較処理プログラムを記述
しなくても、リンクユニット内部に複数個の割り込み発
生・番号条件を登録するだけで、複数個の割り込み発生
条件の一つでも成立した場合など、リンクユニット内部
での論理演算結果により所定のタイミングで割り込みを
PCOS部に対して発生することができ、ユーザシーケ
ンスプログラムに論理演算処理の内容を記述する必要が
なくなり、プログラムステップ数の削減が図られる。ま
た、プログラマブルコントローラ側で演算処理を実行す
る必要がなくなるため、シーケンススキャンタイムの短
縮が図られる。
According to the link unit for a programmable controller according to the next invention, even if the user does not bother to write a comparison processing program in the user sequence program, only a plurality of interrupt occurrence / number conditions are registered in the link unit. When one of a plurality of interrupt generation conditions is satisfied, an interrupt can be generated to the PCOS unit at a predetermined timing based on the result of the logical operation in the link unit, and the logical operation processing is performed in the user sequence program. Need not be described, and the number of program steps can be reduced. Further, since it is not necessary to execute the arithmetic processing on the programmable controller side, the sequence scan time can be reduced.

【0062】これにより、常時、プログラマブルコント
ローラの実行とは非同期に最新のリンクデバイスデータ
にて演算ができ、かつユーザはユーザシーケンスプログ
ラム上にタイミングを気にしてプログラムを記述すると
いった煩わしさから解放され、プログラム簡略化、効率
化が図られ、またステップ数の減少により、プログラマ
ブルコントローラの低コスト化、小型化、シーケンス実
行の短縮が可能となる。
As a result, the operation can always be performed with the latest link device data asynchronously with the execution of the programmable controller, and the user is free from the burden of writing the program on the user sequence program with care of the timing. In addition, the program can be simplified and the efficiency can be improved, and the reduction in the number of steps makes it possible to reduce the cost, size, and sequence execution of the programmable controller.

【0063】つぎの発明によるプログラマブルコントロ
ーラ用リンクユニットによれば、ユーザがユーザシーケ
ンスプログラム内にわざわざ比較処理プログラムを記述
しなくても、リンクユニット内部に複数個の割り込み発
生・番号条件を登録するだけで、複数個の割り込み発生
条件の一つでも成立した場合に所定のタイミングで割り
込みをPCOS部に対して発生することができ、ユーザ
シーケンスプログラムに論理演算処理の内容を記述する
必要がなくなり、プログラムステップ数の削減が図られ
る。また、プログラマブルコントローラ側で演算処理を
実行する必要がなくなるため、シーケンススキャンタイ
ムの短縮が図られる。
According to the link unit for a programmable controller according to the next invention, even if the user does not bother to write a comparison processing program in the user sequence program, only a plurality of interrupt occurrence / number conditions are registered in the link unit. Therefore, if at least one of the plurality of interrupt generation conditions is satisfied, an interrupt can be generated to the PCOS unit at a predetermined timing, and it is not necessary to describe the contents of the logical operation processing in the user sequence program. The number of steps can be reduced. Further, since it is not necessary to execute the arithmetic processing on the programmable controller side, the sequence scan time can be reduced.

【0064】これにより、常時、プログラマブルコント
ローラの実行とは非同期に最新のリンクデバイスデータ
にて演算ができ、かつユーザはユーザシーケンスプログ
ラム上にタイミングを気にしてプログラムを記述すると
いった煩わしさから解放され、プログラム簡略化、効率
化が図られ、またステップ数の減少により、プログラマ
ブルコントローラの低コスト化、小型化、シーケンス実
行の短縮が可能となる。
As a result, the latest link device data can always be calculated asynchronously with the execution of the programmable controller, and the user is not bothered by writing the program on the user sequence program with care of the timing. In addition, the program can be simplified and the efficiency can be improved, and the reduction in the number of steps makes it possible to reduce the cost, size, and sequence execution of the programmable controller.

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

【図1】 この発明によるプログラマブルコントローラ
用リンクユニットの実施の形態1を示すブロック線図で
ある。
FIG. 1 is a block diagram showing Embodiment 1 of a link unit for a programmable controller according to the present invention.

【図2】 実施の形態1のプログラマブルコントローラ
用リンクユニットにおける割り込み発生条件、番号の登
録例を示すブロック線図である。
FIG. 2 is a block diagram showing an example of registration of interrupt occurrence conditions and numbers in the link unit for a programmable controller according to the first embodiment;

【図3】 実施の形態1のプログラマブルコントローラ
用リンクユニットの動作フローを示すフローチャートで
ある。
FIG. 3 is a flowchart showing an operation flow of the link unit for the programmable controller according to the first embodiment;

【図4】 この発明によるプログラマブルコントローラ
用リンクユニットの実施の形態2を示すブロック線図で
ある。
FIG. 4 is a block diagram showing Embodiment 2 of a link unit for a programmable controller according to the present invention.

【図5】 実施の形態2のプログラマブルコントローラ
用リンクユニットにおける割り込み発生条件、番号の登
録例を示すブロック線図である。
FIG. 5 is a block diagram showing an example of registration of an interrupt generation condition and a number in a link unit for a programmable controller according to a second embodiment;

【図6】 実施の形態2のプログラマブルコントローラ
用リンクユニットの動作フローを示すフローチャートで
ある。
FIG. 6 is a flowchart showing an operation flow of the link unit for a programmable controller according to the second embodiment;

【図7】 この発明によるプログラマブルコントローラ
用リンクユニットの実施の形態3を示すブロック線図で
ある。
FIG. 7 is a block diagram showing Embodiment 3 of a link unit for a programmable controller according to the present invention.

【図8】 実施の形態3のプログラマブルコントローラ
用リンクユニットにおける割り込み発生条件、番号の登
録例を示すブロック線図である。
FIG. 8 is a block diagram showing an example of registration of interrupt occurrence conditions and numbers in a link unit for a programmable controller according to a third embodiment;

【図9】 実施の形態3のプログラマブルコントローラ
用リンクユニットの動作フローを示すフローチャートで
ある。
FIG. 9 is a flowchart showing an operation flow of the link unit for a programmable controller according to the third embodiment;

【図10】 この発明によるプログラマブルコントロー
ラ用リンクユニットを使用したプログラマブルコントロ
ーラにおけるユーザシーケンスプログラム例を示すラダ
ー図である。
FIG. 10 is a ladder diagram showing an example of a user sequence program in a programmable controller using the programmable controller link unit according to the present invention.

【図11】 従来におけるプログラマブルコントローラ
用リンクユニットを示すブロック線図である。
FIG. 11 is a block diagram showing a conventional link unit for a programmable controller.

【図12】 従来におけるプログラマブルコントローラ
用リンクユニットを使用したプログラマブルコントロー
ラにおけるユーザシーケンスプログラム例を示すラダー
図である。
FIG. 12 is a ladder diagram showing an example of a user sequence program in a conventional programmable controller using a programmable controller link unit.

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

10 PC(プログラマブルコントローラ),11 P
COS部,12 ユーザシーケンスプログラムメモリ
部,13 デバイスメモリ部,20 リンクユニット,
21 リンクOS部,22 リンクデバイスメモリ部,
23 通信I/F部,24 割り込み発生条件登録部,
25 割り込み番号登録部,26 比較部,27 割り
込み番号通知部,28 割り込み発生部,29 演算
部,30 割り込み発生条件・番号登録部。
10 PC (programmable controller), 11 P
COS section, 12 user sequence program memory section, 13 device memory section, 20 link unit,
21 link OS section, 22 link device memory section,
23 communication I / F section, 24 interrupt generation condition registration section,
25 interrupt number registration unit, 26 comparison unit, 27 interrupt number notification unit, 28 interrupt generation unit, 29 operation unit, 30 interrupt generation condition / number registration unit.

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

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ユーザ記述の一連のシーケンス処理プロ
グラムを実行する複数のプログラマブルコントローラど
うしをリンクデバイスメモリを介して互いに送受信可能
に接続するプログラマブルコントローラ用リンクユニッ
トにおいて、 ユーザシーケンスプログラムに対して発生させたい割り
込みの条件を登録する割り込み発生条件登録部と、 発生させたい割り込みの番号を登録する割り込み番号登
録部と、 リンクデバイスメモリの内容と前記割り込み発生条件登
録部に登録された内容とを比較する比較部と、 前記比較部による比較結果が一致した場合にユーザシー
ケンスプログラムに対して割り込みを発生する割り込み
発生部と、 発生した割り込みを識別するための割り込み番号をプロ
グラマブルコントローラに通知する割り込み番号通知部
と、 を有していることを特徴とするプログラマブルコントロ
ーラ用リンクユニット。
1. A programmable controller link unit that connects a plurality of programmable controllers executing a series of user-written sequence processing programs to each other via a link device memory so as to be able to transmit and receive each other, to generate a user sequence program. An interrupt generation condition registration unit for registering an interrupt condition, an interrupt number registration unit for registering an interrupt number to be generated, and a comparison for comparing the contents of a link device memory with the contents registered in the interrupt generation condition registration unit An interrupt generation unit that generates an interrupt to the user sequence program when the comparison result by the comparison unit matches; and an interrupt number notification that notifies the programmable controller of an interrupt number for identifying the generated interrupt. Programmable controller link unit, characterized in that it has a section, the.
【請求項2】 ユーザ記述の一連のシーケンス処理プロ
グラムを実行する複数のプログラマブルコントローラど
うしをリンクデバイスメモリを介して互いに送受信可能
に接続するプログラマブルコントローラ用リンクユニッ
トにおいて、ユーザシーケンスプログラムに対して発生
させたい割り込みの条件を複数個登録する割り込み発生
条件登録部と、 発生させたい割り込みの番号を登録する割り込み番号登
録部と、 リンクデバイスメモリの複数個の内容と割り込み発生条
件登録部の複数個の内容について各々条件成立の有無の
判定を行い、その複数個の判定結果の論理演算を行う演
算部と 記演算部による論理演算結果に応じてユーザシーケン
スプログラムに対して割り込みを発生する割り込み発生
部と、 発生した割り込みを識別するための割り込み番号をプロ
グラマブルコントローラに通知する割り込み番号通知部
と、 を有していることを特徴とするプログラマブルコントロ
ーラ用リンクユニット。
2. A programmable controller link unit that connects a plurality of programmable controllers executing a series of user-written sequence processing programs to each other via a link device memory so as to be able to transmit and receive each other, to generate a user sequence program. An interrupt condition register for registering a plurality of interrupt conditions, an interrupt number register for registering the number of the interrupt to be generated, a plurality of contents of the link device memory and a plurality of contents of the interrupt condition register each makes a determination of whether the conditions are satisfied, an interrupt generator for generating an arithmetic unit for performing a logical operation of the plurality of determination results, an interruption to the user sequence program in accordance with the logic operation result by the pre-Symbol arithmetic unit To identify the interrupt that occurred And an interrupt number notifying unit for notifying the programmable controller of the interrupt number.
【請求項3】 前記演算部と前記割り込み発生部とは、
割り込み発生条件登録部の複数個の条件がすべて成立し
た場合にのみユーザシーケンスプログラムに対して割り
込みを発生するよう構成されていることを特徴とする請
求項2に記載のプログラマブルコントローラ用リンクユ
ニット。
3. The computing unit and the interrupt generating unit,
3. The programmable controller link unit according to claim 2, wherein an interrupt is generated for the user sequence program only when all of a plurality of conditions of the interrupt generation condition registration unit are satisfied.
【請求項4】 ユーザ記述の一連のシーケンス処理プロ
グラムを実行する複数のプログラマブルコントローラど
うしをリンクデバイスメモリを介して互いに送受信可能
に接続するプログラマブルコントローラ用リンクユニッ
トにおいて、 ユーザシーケンスプログラムに対して発生させたい割り
込みの条件と割り込み番号とを組にして複数個登録する
割り込み発生条件・番号登録部と、 リンクデバイスメモリの複数個の内容と割り込み発生条
件・番号登録部の複数個の割り込み発生条件の内容につ
いて各々条件成立の有無の判定を行い、その複数個の判
定結果の論理演算を行う演算部と、 前記演算部による論理演算結果に応じてユーザシーケン
スプログラムに対して割り込みを発生する割り込み発生
部と、 発生した割り込みを識別するための割り込み番号をプロ
グラマブルコントローラに通知する割り込み番号通知部
と、 を有していることを特徴とするプログラマブルコントロ
ーラ用リンクユニット。
4. A programmable controller link unit that connects a plurality of programmable controllers executing a series of user-written sequence processing programs to each other via a link device memory so as to be able to transmit and receive each other, to generate a user sequence program. An interrupt condition / number register for registering multiple interrupt conditions and interrupt numbers as a set, and multiple contents of the link device memory and multiple interrupt conditions of the interrupt condition / number register An operation unit that determines whether each condition is satisfied, and performs a logical operation of the plurality of determination results; an interrupt generation unit that generates an interrupt to a user sequence program according to the logical operation result by the operation unit; To identify the interrupt that occurred Programmable controller link unit, characterized in that it has the interrupt number notification unit that notifies the interrupt number to the programmable controller.
【請求項5】 前記演算部と前記割り込み発生部とは、
割り込み発生条件・番号登録部の複数個の条件の何れか
一つでも成立した場合にユーザシーケンスプログラムに
対して割り込みを発生するよう構成されていることを特
徴とする請求項4に記載のプログラマブルコントローラ
用リンクユニット。
5. The computing unit and the interrupt generating unit,
5. The programmable controller according to claim 4, wherein an interrupt is generated for a user sequence program when any one of a plurality of conditions of the interrupt generation condition / number registration unit is satisfied. Link unit.
JP00445898A 1998-01-13 1998-01-13 Link unit for programmable controller Expired - Lifetime JP3349940B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00445898A JP3349940B2 (en) 1998-01-13 1998-01-13 Link unit for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00445898A JP3349940B2 (en) 1998-01-13 1998-01-13 Link unit for programmable controller

Publications (2)

Publication Number Publication Date
JPH11202909A JPH11202909A (en) 1999-07-30
JP3349940B2 true JP3349940B2 (en) 2002-11-25

Family

ID=11584715

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00445898A Expired - Lifetime JP3349940B2 (en) 1998-01-13 1998-01-13 Link unit for programmable controller

Country Status (1)

Country Link
JP (1) JP3349940B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001331468A (en) * 2000-05-19 2001-11-30 Nec Corp Linked job flow management system among plural computers
CN100419723C (en) * 2005-12-30 2008-09-17 北京中星微电子有限公司 Multi-interruption cache device and method

Also Published As

Publication number Publication date
JPH11202909A (en) 1999-07-30

Similar Documents

Publication Publication Date Title
US4942519A (en) Coprocessor having a slave processor capable of checking address mapping
JP2581323B2 (en) How to update reference bits and change bits
JPH11259383A (en) Ras information acquisition circuit and information processing system equipped with the same
JP3349940B2 (en) Link unit for programmable controller
JPH02189663A (en) Input/output data transfer system
US6275876B1 (en) Specifying wrap register for storing memory address to store completion status of instruction to external device
US8291270B2 (en) Request processing device, request processing system, and access testing method
JP3210988B2 (en) Keyboard with card processing function and control method thereof
EP1058189A2 (en) Microcomputer with debugging system
US5369746A (en) Interprocessor data transferring system and method
US6813647B2 (en) Microcomputer system reading data from secondary storage medium when receiving upper address from outside and writing data to primary storage medium
US5761482A (en) Emulation apparatus
JPH05233844A (en) Microcomputer
JP3807616B2 (en) Microcomputer
JPH0821009B2 (en) CHANNEL CONTROLLER INITIALIZATION METHOD AND SYSTEM FOR THE INITIALIZATION
US4630194A (en) Apparatus for expediting sub-unit and memory communications in a microprocessor implemented data processing system having a multibyte system bus that utilizes a bus command byte
JPH06324861A (en) System and method for controlling cpu
JPH03296146A (en) Back-up device for program development
JP2004056595A (en) Interface method of logic circuit, and device providing the interface
US20030182523A1 (en) Cache memory control device and cache memory system
JP2000029673A (en) Program control system
CN114756269A (en) Mouse chip convenient for updating firmware and operation method thereof
JPS6139132A (en) Microprogram loading system
JPH08221297A (en) Program debugging device
Cropper et al. Microprocessors in CRT terminals

Legal Events

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

Free format text: PAYMENT UNTIL: 20080913

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080913

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090913

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090913

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100913

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110913

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110913

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120913

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130913

Year of fee payment: 11

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term