JP2000163108A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2000163108A
JP2000163108A JP10337905A JP33790598A JP2000163108A JP 2000163108 A JP2000163108 A JP 2000163108A JP 10337905 A JP10337905 A JP 10337905A JP 33790598 A JP33790598 A JP 33790598A JP 2000163108 A JP2000163108 A JP 2000163108A
Authority
JP
Japan
Prior art keywords
unit
base
interrupt
extension
signal line
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.)
Granted
Application number
JP10337905A
Other languages
Japanese (ja)
Other versions
JP3366266B2 (en
Inventor
Masatoshi Mizuno
正俊 水野
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 JP33790598A priority Critical patent/JP3366266B2/en
Publication of JP2000163108A publication Critical patent/JP2000163108A/en
Application granted granted Critical
Publication of JP3366266B2 publication Critical patent/JP3366266B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To quicken a time required for transmitting interruption request and release from an I/O unit through an interrupting signal line to a CPU unit. SOLUTION: Interrupting signals from plural I/O units 4 on a basic base 1 and extension bases 2 are transmitted through one interrupting signal line which is made common among system buses to a CPU unit 3 on the basic base 1 in this PC. In this case, the basic base 1 is provided with an AND gate 6a for electrically dividing the interrupting signals from the I/O units 4 on the basic base 1 and the interrupting signals from extension connector sides for connecting the extension bases, and for applying any signal to the CPU unit 3, and the extension base 2 is provided with an AND gate 8a for electrically dividing the interrupting signals from the I/O units 4 on its own extension base and the interrupting signals from the extension connector side for connecting the other extension base, and applying any signal to the extension connector at the CPU unit side.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、プログラマブル
コントローラに関し、特に、基本ベースや増設ベースに
装着されている複数のI/Oユニットから基本ベースに
装着されているCPUユニットに対して割込み要求・解
除をするための割込み処理を行うプログラマブルコント
ローラに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller and, more particularly, to an interrupt request / release from a plurality of I / O units mounted on a basic base or an extension base to a CPU unit mounted on the basic base. The present invention relates to a programmable controller that performs an interrupt process for performing

【0002】[0002]

【従来の技術】図4は、従来におけるプログラマブル・
コントローラ(以下、PCと略す)の構成例を示してい
る。このPCは、各ユニットを電気的に接続するための
1台の基本ベース1と、複数台(便宜上2台とする)の
増設ベース2とを有している。
2. Description of the Related Art FIG.
1 shows a configuration example of a controller (hereinafter abbreviated as PC). This PC has one basic base 1 for electrically connecting the units and a plurality of (two for convenience) extension bases 2.

【0003】基本ベース1にはPCシステム全体の制御
を司るCPUユニット3が装着されている。CPUユニ
ット3は、マイクロプロセッサ3aと、マイクロプロセ
ッサ3aが実行するプログラムを格納したメモリ3b
と、I/Oユニット4を制御するためのシステムバス制
御回路3cと、割込み入力回路3dとを有している。
A basic base 1 is equipped with a CPU unit 3 for controlling the entire PC system. The CPU unit 3 includes a microprocessor 3a and a memory 3b storing a program to be executed by the microprocessor 3a.
And a system bus control circuit 3c for controlling the I / O unit 4, and an interrupt input circuit 3d.

【0004】基本ベース1と増設ベース2には、電源ユ
ニット11と、図示されていない外部入出力機器とデー
タのやり取りを行う複数台のI/Oユニット4がそれぞ
れ装着されている。I/Oユニット4は、割込み要求回
路4aと、オープンコレクタ出力のインバータゲート4
bと、割込み要求の有無をCPUユニット3が判定する
ための割込み信号状態通知回路4cとを有している。
A power supply unit 11 and a plurality of I / O units 4 for exchanging data with an external input / output device (not shown) are mounted on the basic base 1 and the extension base 2, respectively. The I / O unit 4 includes an interrupt request circuit 4a and an open collector output inverter gate 4.
b, and an interrupt signal state notification circuit 4c for the CPU unit 3 to determine the presence or absence of an interrupt request.

【0005】基本ベース1にはシステムバス5が設けら
れており、システムバス5は、CPUユニット3に対し
て割込み要求・解除を伝達するための割込み信号線5a
と、割込み信号線以外の信号線群5eとを含み、割込み
信号線5aにはプルアップ抵抗5fが接続されている。
このプルアップ抵抗5fは、オープンコレクタによるワ
イヤードOR接続を実現するために必要であり、およ
び、基本ベース上にI/Oユニットが一台も装着されて
いないときに割込み信号が誤動作しないように実装して
いるものである。増設ベース2にもシステムバス7が設
けられており、システムバス7は、CPUユニット3に
対して割込み要求・解除を伝達するための割込み信号線
7aと、割込み信号線以外の信号線群7eとを含んでい
る。
The basic base 1 is provided with a system bus 5. The system bus 5 is provided with an interrupt signal line 5 a for transmitting an interrupt request / release to the CPU unit 3.
And a signal line group 5e other than the interrupt signal line. A pull-up resistor 5f is connected to the interrupt signal line 5a.
This pull-up resistor 5f is necessary for realizing wired OR connection by an open collector, and is mounted so that an interrupt signal does not malfunction when no I / O unit is mounted on the basic base. Is what you are doing. The extension base 2 is also provided with a system bus 7. The system bus 7 includes an interrupt signal line 7 a for transmitting an interrupt request / release to the CPU unit 3 and a signal line group 7 e other than the interrupt signal line. Contains.

【0006】基本ベース1、増設ベース2のそれぞれに
は増設コネクタ10が設けられており、各増設コネクタ
10には割込み信号線5aを含むシステムバス5が接続
されている。基本ベース1と増設ベース2の増設コネク
タ10、および増設ベース2どうしの増設コネクタ10
にはそれぞれ増設ケーブル9が接続されており、増設ケ
ーブル9は各ベースのシステムバス5、7を直結してい
る。
An extension connector 10 is provided on each of the basic base 1 and the extension base 2, and a system bus 5 including an interrupt signal line 5a is connected to each extension connector 10. Extension connector 10 of basic base 1 and extension base 2 and extension connector 10 of extension base 2
Is connected to an extension cable 9, and the extension cable 9 is directly connected to the system buses 5 and 7 of each base.

【0007】PCは工場等において複数台の装置を制御
するために当該PCのI/Oユニット4経由で各装置へ
多数の入出力線を配線するのであるが、基本ベース1に
搭載可能なI/Oユニット数だけでは入出力線の本数が
足りない場合には、図示されているように、基本ベース
1および増設ベース2上の増設コネクタ10に、複数の
増設ケーブル9を接続し、基本ベース1上のシステムバ
ス5と複数の増設ベース2上のシステムバス7を電気的
に同一のシステムバスにすることにより、基本ベース1
のCPUユニット3が増設ベース2上のI/Oユニット
4を制御できるようにし、入出力線の本数増設を実現し
ている。また、基本ベース1から離れた場所にある装置
を制御する場合にも、基本ベース1に増設ケーブル9を
介して増設ベース2を接続し、距離の延長を実現してい
る。
In the PC, many input / output lines are connected to each device via the I / O unit 4 of the PC in order to control a plurality of devices in a factory or the like. If the number of I / O lines is not enough with only the number of I / O units, a plurality of extension cables 9 are connected to extension connectors 10 on the basic base 1 and the extension base 2 as shown in the figure. 1 and the system buses 7 on the plurality of extension bases 2 are electrically the same system bus, so that the basic base 1
CPU unit 3 can control the I / O unit 4 on the extension base 2, thereby increasing the number of input / output lines. In addition, when controlling a device located at a place distant from the basic base 1, the extension base 2 is connected to the basic base 1 via an extension cable 9 to extend the distance.

【0008】PCは複数のI/Oユニットが接続される
ため、仮にI/Oユニット1台につき1本の割込み信号
線によって個別に割込み信号をCPUユニット3に入力
する構成とした場合、割込み入力信号線が多数となり、
システムバス本数・増設コネクタのピン数・増設ケーブ
ル内の芯数が増える等、コストやスペースの面で短所が
多いことから、割込み信号線5a、7aは複数のI/O
ユニットで1本の割込み信号線として共有化している。
[0008] Since a plurality of I / O units are connected to the PC, if an interrupt signal is individually input to the CPU unit 3 by one interrupt signal line for each I / O unit, an interrupt input The number of signal lines increases,
Since there are many disadvantages in terms of cost and space such as an increase in the number of system buses, the number of pins of the extension connector, and the number of cores in the extension cable, the interrupt signal lines 5a and 7a are provided with a plurality of I / Os.
Units share one interrupt signal line.

【0009】なお、便宜上、CPUユニット3は割込み
処理プログラムを起動する以前に、基本ベースから近い
増設ベースから順番に増設ベース(1)、増設ベース
(2)〜増設ベース(j)と位置付けていること、およ
び各ベース毎にI/Oユニット4の装着有無および装着
位置を把握しており、装着順にI/Oユニット(1)、
I/Oユニット(2)〜I/Oユニット(i)と位置付
けていることを前提条件とする。
For convenience, before the CPU unit 3 activates the interrupt processing program, the CPU unit 3 positions the extension bases (1), (2) to (j) in order from the extension base close to the basic base. And the presence or absence of the I / O unit 4 and the mounting position of each I / O unit 4 for each base, and the I / O units (1),
It is assumed that they are positioned as I / O unit (2) to I / O unit (i).

【0010】複数のI/Oユニット4からの割込み信号
線5aは1本で共有化して割込み信号をCPUユニット
3内のシステムバス制御部3cへ入力しているため、そ
れぞれのI/Oユニット4内にはオープンコレクタ出力
のインバータゲート4bを実装してワイヤードOR接続
を実現し、割込み信号出力どうしが電気的に衝突しない
ように割込み信号線5aをCPUユニット3内の割込み
入力回路3dと接続し、マイクロプロセッサ3aへ割込
み要求をするようになっている。
Since the interrupt signal lines 5a from the plurality of I / O units 4 are shared by one and the interrupt signal is input to the system bus control unit 3c in the CPU unit 3, each of the I / O units 4 A wired OR connection is implemented by mounting an inverter gate 4b having an open collector output, and an interrupt signal line 5a is connected to an interrupt input circuit 3d in the CPU unit 3 so that the interrupt signal outputs do not collide electrically. , An interrupt request to the microprocessor 3a.

【0011】よって、CPUユニット3が基本ベース1
または増設ベース2に装着してある複数のI/Oユニッ
ト4のうちのどのI/Oユニットから割込み要求された
のか判別する手段が必要であり、このため、それぞれの
I/Oユニット4内に割込み信号状態通知回路4cを実
装し、CPUユニット3内の割込み入力回路3dを介し
てマイクロプロセッサ3aが割込み要求を受けたとき、
メモリ3bに格納されている割込み処理プログラムを起
動する。
[0011] Therefore, the CPU unit 3 is
Alternatively, means is required to determine which of the plurality of I / O units 4 attached to the extension base 2 has issued the interrupt request. When the microprocessor 3a receives the interrupt request via the interrupt input circuit 3d in the CPU unit 3 when the interrupt signal state notification circuit 4c is mounted,
Activate the interrupt processing program stored in the memory 3b.

【0012】図5、図6は割込み処理プログラムの処理
フローを示している。最初に、ユニット番号iを1にセ
ットし(ステップS101)、基本ベース1に搭載され
ているI/Oユニット(i)内の割込み信号状態通知回
路4cを割込み信号線以外の信号線群5eによりアクセ
スし(S102)、そのI/Oユニット(i)からの割
込み要求有無を判別するための情報を得る。その情報に
よってI/Oユニット(i)からの割込み要求有無を判
別し(ステップS103)、割込み要求が有るI/Oユ
ニットに対しては、対応する割込み処理を実施する(S
104)。
FIGS. 5 and 6 show the processing flow of the interrupt processing program. First, the unit number i is set to 1 (step S101), and the interrupt signal state notification circuit 4c in the I / O unit (i) mounted on the basic base 1 is controlled by the signal line group 5e other than the interrupt signal line. An access is made (S102), and information for determining the presence or absence of an interrupt request from the I / O unit (i) is obtained. Based on the information, the presence or absence of an interrupt request from the I / O unit (i) is determined (step S103), and a corresponding interrupt process is performed on the I / O unit having the interrupt request (S103).
104).

【0013】以降、基本ベース1に装着されているI/
Oユニット4の台数分、その処理を繰り返す(ステップ
S105、ステップS106、ステップS102〜ステ
ップS105)。
Hereinafter, the I / O mounted on the basic base 1
The process is repeated for the number of O units 4 (step S105, step S106, steps S102 to S105).

【0014】基本ベース1に装着されているI/Oユニ
ット4の台数分の処理が完了すれば、増設ベース2が装
着されているか否かを判別し(ステップS107)、増
設ベース2が装着されていれば、増設ベース番号j、ユ
ニット番号iをそれぞれ1にセットし(ステップS10
8、ステップS109)、増設ベース(j)に搭載され
ているI/Oユニット(i)内の割込み信号状態通知回
路4cを割込み信号線以外の信号線群7eによりアクセ
スし(S110)、そのI/Oユニット(i)からの割
込み要求有無を判別するための情報を得る。その情報に
よってI/Oユニット(i)からの割込み要求有無を判
別し(ステップS111)、割込み要求が有るI/Oユ
ニットに対しては、対応する割込み処理を実施する(S
112)以降、増設ベース(j)に装着されているI/
Oユニット4の台数分、その処理を繰り返す(ステップ
S113、ステップS114、ステップS109〜ステ
ップS113)。
When processing for the number of I / O units 4 mounted on the basic base 1 is completed, it is determined whether or not the extension base 2 is mounted (step S107), and the extension base 2 is mounted. If so, the extension base number j and the unit number i are set to 1 (step S10).
8, step S109), the interrupt signal state notification circuit 4c in the I / O unit (i) mounted on the extension base (j) is accessed by the signal line group 7e other than the interrupt signal line (S110), and the I Information for determining the presence / absence of an interrupt request from the / O unit (i) is obtained. The presence or absence of an interrupt request from the I / O unit (i) is determined based on the information (step S111), and a corresponding interrupt process is performed on the I / O unit having the interrupt request (S111).
112) After that, the I / O attached to the extension base (j)
The process is repeated for the number of O units 4 (step S113, step S114, steps S109 to S113).

【0015】一つの増設ベース(j)の処理が全て完了
すれば、増設ベース(j+1)の有無を確認し(ステッ
プS115)、増設ベース(j+1)が装着されていれ
ば、この増設ベース(j+1)のI/Oユニット4の処
理を同様に行う(ステップS116、ステップS109
〜ステップS115)。
When the processing of one extension base (j) is completed, it is checked whether or not the extension base (j + 1) exists (step S115). If the extension base (j + 1) is mounted, the extension base (j + 1) is installed. ) Of the I / O unit 4 (step S116, step S109)
-Step S115).

【0016】以上のように、従来の割込み処理プログラ
ムでは、PCに装着されている全てのI/Oユニット4
内の割込み信号状態通知回路4cを割込み信号線以外の
信号線群5e、7eおよび増設ケーブル9を介してアク
セスし、どのI/Oユニットからの割込み要求なのかを
判別し、割込み要求のあるI/Oユニットに対して対応
する割込み処理プログラムを実行するという方法が取ら
れている。
As described above, in the conventional interrupt processing program, all of the I / O units 4
The interrupt signal status notifying circuit 4c is accessed via the signal line groups 5e and 7e other than the interrupt signal line and the extension cable 9 to determine from which I / O unit the interrupt request is issued. A method of executing a corresponding interrupt processing program for the / O unit has been adopted.

【0017】[0017]

【発明が解決しようとする課題】上述のような従来にお
ける割込み信号の接続法では、増設ベース、増設ケーブ
ルおよびI/Oユニットを増設すればするほど、システ
ムバスの総延長が長くなり、同時にシステムバス内の割
込み信号線の総延長も長くなり、割込み信号線のインダ
クタンスや静電容量が増え、PCに装着してあるすべて
のI/OユニットからCPUユニットへの割込み要求・
解除にかかる伝播遅延時間が一律に増加してしまってい
た。
In the above-described conventional connection method of the interrupt signal, the total extension of the system bus becomes longer as the extension base, the extension cable and the I / O unit are increased. The total length of the interrupt signal lines in the bus also increases, the inductance and capacitance of the interrupt signal lines increase, and interrupt requests from all I / O units mounted on the PC to the CPU unit
The propagation delay time for release was uniformly increased.

【0018】特に、増設ケーブルは数10cmから数m
または数10mの長さを持ち、また増設ベース上の割込
み信号線においても数10cmの長さを持つことから、
割込み信号の伝播遅延に大きく影響していた。
In particular, the extension cable is several tens cm to several meters.
Or because it has a length of several tens of meters, and also has a length of several tens of cm in the interrupt signal line on the extension base,
This greatly affected the propagation delay of the interrupt signal.

【0019】また、1本の割込み信号線を共有化するた
めに各I/Oユニットの割込み信号出力としてオープン
コレクタ出力のインバータゲートを使用しているが、オ
ープンコレクタ出力のICの特性上、I/Oユニットが
割込み要求を解除したときに、共有化された割込み信号
はプルアップ抵抗によりハイレベルに駆動されるため、
割込み信号線の配線長が長いほど、インダクタンスや静
電容量により、ローレベルからハイレベルに状態遷移す
る時間が長くなってしまっていた。
In order to share one interrupt signal line, an open-collector output inverter gate is used as an interrupt signal output of each I / O unit. When the / O unit releases the interrupt request, the shared interrupt signal is driven to a high level by the pull-up resistor.
As the wiring length of the interrupt signal line is longer, the transition time from the low level to the high level becomes longer due to inductance and capacitance.

【0020】また、通常、数10台のI/Oユニットが
装着してあっても、割込み要求が同時に発生する確率は
低く、仮に同時に発生したとしても、せいぜい数台であ
るにも拘わらず、CPUユニットはI/Oユニットから
割込み要求を受けた後、装着されているすべてのI/O
ユニットの割込み信号状態通知回路をアクセスし、どの
I/Oユニットからの割込み要求なのかを判別してお
り、CPUユニットがI/Oユニットをアクセスするた
めに要する時間は、CPUユニット内のCPUがメモリ
をアクセスするために要する時間に比べて数倍から数1
0倍必要となるため、割込み要求有無の判別に時間を要
し、割込み処理プログラムの実行時間に長い時間を要し
ていた。
In general, even if several tens of I / O units are mounted, the probability of simultaneous occurrence of interrupt requests is low, and even if they occur simultaneously, the number of interrupt requests is at most several. After the CPU unit receives the interrupt request from the I / O unit, all the attached I / O
The interrupt signal status notification circuit of the unit is accessed to determine from which I / O unit the interrupt request is issued. The time required for the CPU unit to access the I / O unit is determined by the CPU in the CPU unit. Several times to several times longer than the time required to access the memory
Since it is required to be 0 times, it takes time to determine the presence or absence of an interrupt request, and it takes a long time to execute the interrupt processing program.

【0021】この発明は、上述の如き問題点を解消する
ためになされたもので、I/Oユニットから割込み信号
線によりCPUユニットへ割込み要求・解除を伝達する
時間を高速化することを目的としており、特に、CPU
ユニットに近いベースに装着されているI/Oユニット
からの割込み要求・解除のための割込み信号ほど高速化
でき、またCPUユニットが実行する割込み処理プログ
ラムの実行時間を短くすることにより、PC全体の処理
時間を短くすることができるプログラマブルコントロー
ラを得ることを目的としている。
The present invention has been made to solve the above-mentioned problems, and has as its object to speed up the time required to transmit an interrupt request / release from an I / O unit to a CPU unit via an interrupt signal line. And especially, CPU
The interrupt signal for requesting / releasing an interrupt from an I / O unit mounted on a base close to the unit can be sped up, and by shortening the execution time of the interrupt processing program executed by the CPU unit, the overall PC It is an object of the present invention to obtain a programmable controller capable of reducing processing time.

【0022】[0022]

【課題を解決するための手段】上述の目的を達成するた
めに、この発明によるプログラマブルコントローラは、
基本ベースおよび増設ベース上の複数のI/Oユニット
からの割込み信号をシステムバス内の一つの共有化され
た割込み信号線を介して基本ベース上のCPUユニット
へ伝達するプログラマブルコントローラにおいて、基本
ベースは、基本ベース上のI/Oユニットからの割込み
信号と増設ベース接続用の増設コネクタ側からの割込み
信号とを電気的に分断し、そのいずれの信号もCPUユ
ニットに与えることができる割込み信号線分断手段を有
しているものである。
To achieve the above object, a programmable controller according to the present invention comprises:
In a programmable controller that transmits interrupt signals from a plurality of I / O units on a basic base and an extension base to a CPU unit on the basic base via one shared interrupt signal line in a system bus, the basic base is An interrupt signal line that can electrically separate an interrupt signal from an I / O unit on the basic base and an interrupt signal from an expansion connector for connecting an expansion base, and can provide any signal to the CPU unit Means.

【0023】つぎの発明によるプログラマブルコントロ
ーラは、基本ベースおよび増設ベース上の複数のI/O
ユニットからの割込み信号をシステムバス内の一つの共
有化された割込み信号線を介して基本ベース上のCPU
ユニットへ伝達するプログラマブルコントローラにおい
て、増設ベースは、自増設ベース上のI/Oユニットか
らの割込み信号と他の増設ベース接続用の増設コネクタ
側からの割込み信号とを電気的に分断し、そのいずれの
信号もCPUユニット側の増設コネクタに与えることが
できる割込み信号線分断手段を有しているものである。
A programmable controller according to the next invention has a plurality of I / Os on a basic base and an extension base.
The interrupt signal from the unit is sent to the CPU on the basic base via one shared interrupt signal line in the system bus.
In the programmable controller for transmitting to the unit, the extension base electrically separates an interrupt signal from an I / O unit on the self extension base from an interrupt signal from an extension connector for connecting another extension base. Is also provided with an interrupt signal line disconnecting means which can be applied to the additional connector on the CPU unit side.

【0024】つぎの発明によるプログラマブルコントロ
ーラは、前記基本ベースあるいは前記増設ベースの割込
み信号線分断手段はANDゲートで構成されているもの
である。
In the programmable controller according to the next invention, the basic base or the extension base interrupt signal line disconnecting means is constituted by an AND gate.

【0025】つぎの発明によるプログラマブルコントロ
ーラは、前記割込み信号線分断手段によって基本ベース
上のI/Oユニットからの割込み信号線と増設ベース接
続用の増設コネクタ側からの割込み信号線の状態より割
込み要求が基本ベース上のI/Oユニットからのものか
増設ベース上のI/Oユニットからのものかを判別して
その判別結果をCPUユニットに通知する割込み信号状
態通知手段を前記基本ベースに有し、基本ベース上のI
/Oユニットから割込み要求がある場合にのみ基本ベー
ス上のI/Oユニットについて割込み要求元のI/Oユ
ニットを検索して割込み処理を実行し、基本ベース上の
I/Oユニットから割込み要求がない場合には基本ベー
ス上のI/Oユニットについて割込み要求元のI/Oユ
ニットの検索を行わないものである。
In the programmable controller according to the next invention, the interrupt request is obtained from the state of the interrupt signal line from the I / O unit on the basic base and the state of the interrupt signal line from the extension connector for connecting the extension base. Has an interrupt signal status notifying means for discriminating whether the signal is from an I / O unit on the basic base or an I / O unit on the extension base and notifies the CPU unit of the discrimination result. , I on the base
Only when there is an interrupt request from the I / O unit, the I / O unit on the basic base is searched for the interrupt request source I / O unit and the interrupt processing is executed. When there is no I / O unit on the basic base, the I / O unit of the interrupt request source is not searched for.

【0026】つぎの発明によるプログラマブルコントロ
ーラは、前記割込み信号線分断手段によって自増設ベー
ス上のI/Oユニットからの割込み信号線と他の増設ベ
ース接続用の増設コネクタ側からの割込み信号線の状態
より割込み要求が自増設ベース上のI/Oユニットから
のものか他の増設ベース上のI/Oユニットからのもの
かを判別してその判別結果を基本ベース上のCPUユニ
ットに通知する割込み信号状態通知手段を前記増設ベー
スに有し、自増設ベース上のI/Oユニットから割込み
要求がある場合にのみ自増設ベース上のI/Oユニット
について割込み要求元のI/Oユニットを検索して割込
み処理を実行し、自増設ベース上のI/Oユニットから
割込み要求がない場合には自増設ベース上のI/Oユニ
ットについて割込み要求元のI/Oユニットの検索を行
わないものである。
In the programmable controller according to the next invention, the state of the interrupt signal line from the I / O unit on the self extension base and the interruption signal line from the extension connector side for connecting another extension base is provided by the interruption signal line dividing means. An interrupt signal for discriminating whether the interrupt request is from an I / O unit on its own extension base or an I / O unit on another extension base and notifying the CPU unit on the basic base of the discrimination result. A status notification unit is provided in the extension base, and only when there is an interrupt request from the I / O unit on the extension base, the I / O unit of the interrupt request source is searched for the I / O unit on the extension base. Executes interrupt processing, and if there is no interrupt request from the I / O unit on the self extension base, interrupts the I / O unit on the self extension base It is not conducted search of the requesting I / O unit.

【0027】[0027]

【発明の実施の形態】以下に添付の図を参照して、この
発明にかかるプログラマブルコントローラの実施の形態
を詳細に説明する。なお、以下に説明するこの発明の実
施の形態において、上述の従来例と同一構成の部分は、
上述の従来例に付した符号と同一の符号を付して、その
説明を省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a programmable controller according to the present invention will be described below in detail with reference to the accompanying drawings. Note that, in the embodiment of the present invention described below, portions having the same configuration as the above-described conventional example are as follows.
The same reference numerals as those of the above-described conventional example are given the same reference numerals, and description thereof will be omitted.

【0028】図1は、この発明によるプログラマブルコ
ントローラの一つの実施の形態を示している。この発明
によるプログラマブルコントローラは、基本ベース1に
基本ベース割込み制御回路6が、増設ベース2に増設ベ
ース割込み制御回路8がそれぞれ組み込まれている。
FIG. 1 shows an embodiment of a programmable controller according to the present invention. In the programmable controller according to the present invention, a basic base interrupt control circuit 6 is incorporated in the basic base 1 and an extension base interrupt control circuit 8 is incorporated in the extension base 2.

【0029】基本ベース割込み制御回路6は、基本ベー
ス1上のCPUユニット3が装着される場所の近傍に搭
載され、基本ベース1上の割込み信号と複数の増設ベー
スからの割込み信号を電気的に分離したり、その分離し
たそれぞれの基本ベース1と複数の増設ベース2上の割
込み信号の状態をCPUユニット3がモニタするための
回路を含んでいる。
The basic base interrupt control circuit 6 is mounted near the place where the CPU unit 3 is mounted on the basic base 1 and electrically converts an interrupt signal on the basic base 1 and an interrupt signal from a plurality of extension bases. It includes a circuit for the CPU unit 3 to monitor the state of the interrupt signal on the separated bases 1 and the plurality of extension bases 2 separated from each other.

【0030】具体的には、基本ベース割込み制御回路6
は、出力端子を割込み信号線5cによってCPUユニッ
ト3の割込み入力回路3dに接続された割込み信号線分
断手段としてのANDゲート6aと、基本ユニット1内
にてバス接続されて割込み信号線5bと5dより信号入
力し、基本ベース1上の割込み要求有無および増設ベー
ス2からの割込み要求有無をCPUユニット3が判別す
るための割込み信号状態通知回路6bと、増設ベース2
が装着されない場合に増設コネクタ10側の割込み信号
線5dをハイレベルに確実に固定して割込要求が誤動作
しないようにするためのプルアップ抵抗6cとを有して
おり、基本ベース1上のI/Oユニット4の割込み信号
線5bがANDゲート6aの一方の入力端子に接続さ
れ、増設コネクタ10よりの割込み信号線5dがAND
ゲート6aの他方の入力端子に接続されている。
More specifically, the basic base interrupt control circuit 6
Is an AND gate 6a serving as an interrupt signal line disconnecting means whose output terminal is connected to an interrupt input circuit 3d of the CPU unit 3 by an interrupt signal line 5c, and an interrupt signal line 5b and 5d An interrupt signal status notifying circuit 6b for the CPU unit 3 to determine the presence / absence of an interrupt request on the basic base 1 and the presence / absence of an interrupt request from the extension base 2;
And a pull-up resistor 6c for securely fixing the interrupt signal line 5d of the extension connector 10 to a high level so that an interrupt request does not malfunction when the device is not mounted. The interrupt signal line 5b of the I / O unit 4 is connected to one input terminal of the AND gate 6a, and the interrupt signal line 5d from the extension connector 10 is connected to the AND terminal.
It is connected to the other input terminal of the gate 6a.

【0031】増設ベース割込み制御回路8は、増設ベー
ス2上の増設コネクタ10の近傍に搭載され、各増設ベ
ース2の割込み信号を電気的に分離したり、その分離し
たそれぞれの割込み信号の状態をCPUユニット3がモ
ニタするための回路を含んでいる。
The extension base interrupt control circuit 8 is mounted in the vicinity of the extension connector 10 on the extension base 2 and electrically separates the interruption signals of each extension base 2 and checks the state of each of the separated interruption signals. The CPU unit 3 includes a circuit for monitoring.

【0032】具体的には、増設ベース割込み制御回路8
は、出力端子を割込み信号線7cによって基本ユニット
1側の増設コネクタ(前段側増設コネクタ)10に接続
された割込み信号線分断手段としてのANDゲート8a
と、基本ユニット1内にてバス接続されて割込み信号線
7bと7dより信号入力し、自増設ベース上の割込み要
求有無および、自増設ベースにさらに追加増設されてい
る他の増設ベースからの割込み要求有無をCPUユニッ
ト3が判別するための割込み信号状態通知回路8bと、
自増設ベースに他の増設ベースが追加されなかった場合
に割込み信号線7dをハイレベルに確実に固定して割込
要求が誤動作しないようにするためのプルアップ抵抗8
cと、ワイヤードOR接続を実現するため、および、自
増設ベース上にI/Oユニットが一台も装着されていな
いときに割込み信号が誤動作しないように実装してある
プルアップ抵抗8dとを有しており、自増設ベース上の
I/Oユニット4の割込み信号線7bがANDゲート8
aの一方の入力端子に接続され、他の増設ベース側の増
設コネクタ(後段側増設コネクタ)10よりの割込み信
号線7dがANDゲート6aの他方の入力端子に接続さ
れている。
More specifically, the extension-based interrupt control circuit 8
Is an AND gate 8a as an interrupt signal line disconnecting means whose output terminal is connected to an extension connector (previous stage extension connector) 10 on the basic unit 1 side by an interrupt signal line 7c.
And a signal is input from the interrupt signal lines 7b and 7d via a bus in the basic unit 1 to determine the presence or absence of an interrupt request on the self-expanding base and an interrupt from another extension base that is additionally added to the self-expanding base. An interrupt signal state notifying circuit 8b for the CPU unit 3 to determine whether or not there is a request;
A pull-up resistor 8 for securely fixing the interrupt signal line 7d to a high level so that an interrupt request does not malfunction when another extension base is not added to the self extension base.
c, and a pull-up resistor 8d mounted to prevent a malfunction of the interrupt signal when no I / O unit is mounted on the self-expanding base and for realizing wired OR connection. The interrupt signal line 7b of the I / O unit 4 on the self-
a, and an interrupt signal line 7d from another extension base side extension connector (later stage extension connector) 10 is connected to the other input terminal of the AND gate 6a.

【0033】つぎに、上述の構成によるプログラマブル
コントローラの動作について以下に説明する。基本ベー
ス1上に装着されているI/Oユニット4、たとえば基
本ベース1上のI/Oユニット(1)が外部入出力機器
からの指令等によりCPUユニット3に割込み要求を発
生させると、基本ベース1上の割込み信号線5bがロー
レベルに駆動され、続いて基本ベース割込み制御回路6
内のANDゲート6aが、割込み信号線5cをローレベ
ルに駆動し、CPUユニット3内の割込み入力回路3d
に割込み要求が発生したことを通知する。
Next, the operation of the programmable controller having the above configuration will be described below. When an I / O unit 4 mounted on the basic base 1, for example, the I / O unit (1) on the basic base 1 generates an interrupt request to the CPU unit 3 by a command from an external input / output device, the basic The interrupt signal line 5b on the base 1 is driven to low level, and then the basic base interrupt control circuit 6
AND gate 6a drives the interrupt signal line 5c to low level, and the interrupt input circuit 3d in the CPU unit 3
To notify that an interrupt request has occurred.

【0034】よって、基本ベース1上のI/Oユニット
4から割込み要求が発生した場合には、インバータゲー
ト4bが基本ベース1上の割込み信号線5d、増設ケー
ブル9および増設ベース2上の割込み信号線7b、7
c、7dを駆動する必要がない分、基本ベース1上のI
/Oユニット(1)が割込み要求をしてからCPUユニ
ット3内の割込み入力回路3dに割込み要求が到達する
までの遅延時間が短くなる。
Therefore, when an interrupt request is generated from the I / O unit 4 on the basic base 1, the inverter gate 4b connects the interrupt signal line 5d on the basic base 1, the extension cable 9, and the interrupt signal on the extension base 2 to each other. Lines 7b, 7
Since there is no need to drive c and 7d, I on the basic base 1
The delay time from when the / O unit (1) issues an interrupt request to when the interrupt request reaches the interrupt input circuit 3d in the CPU unit 3 is reduced.

【0035】また、第1段目の増設ベース(1)上に装
着されているI/Oユニット4が割込み要求を発生した
場合、増設ベース(1)上の割込み信号線7bがローレ
ベルに駆動され、続いて増設ベース(1)上の増設ベー
ス割込み制御回路8内のANDゲート8aが増設ベース
(1)上の割込み信号線7cと増設ケーブル(1)内の
割込み信号線および基本ベース1上の割込み信号線5d
をローレベルに駆動し、基本ベース割込み制御回路6内
のANDゲート6aが、割込み信号線5cをローレベル
に駆動し、CPUユニット3内の割込み入力回路3dに
割込み要求が発生したことを通知する。
When the I / O unit 4 mounted on the first-stage extension base (1) issues an interrupt request, the interrupt signal line 7b on the extension base (1) is driven to a low level. Then, the AND gate 8a in the extension base interrupt control circuit 8 on the extension base (1) is connected to the interruption signal line 7c on the extension base (1), the interruption signal line in the extension cable (1) and the basic base 1. 5d interrupt signal line
To a low level, the AND gate 6a in the basic base interrupt control circuit 6 drives the interrupt signal line 5c to a low level, and notifies the interrupt input circuit 3d in the CPU unit 3 that an interrupt request has occurred. .

【0036】よって、増設ベース(1)上のI/Oユニ
ット4から割込み要求が発生した場合には、ANDゲー
ト2個を駆動するための数nsecの遅延時間は余分に
必要になるものの、増設ベース(1)以外の増設ベース
上の通常、数10cmに及ぶ割込み信号線7bと基本ベ
ース1上の割込み信号線5bおよび増設ケーブル(2)
内の割込み信号線のインダクタンスや静電容量による遅
延時間分がなくなり、従来の割込み信号配線方式より
も、増設ベース(1)上のI/Oユニット4が割込み要
求をしてからCPUユニット3内の割込み入力回路3d
に割込み要求が到達するまでの遅延時間が短くなる。
Therefore, when an interrupt request is generated from the I / O unit 4 on the extension base (1), an extra delay time of several nsec for driving two AND gates is required. An interrupt signal line 7b on the extension base other than the base (1), which typically extends over several tens of cm, an interrupt signal line 5b on the basic base 1, and an extension cable (2)
There is no delay time due to the inductance or capacitance of the interrupt signal line in the CPU unit 3 after the I / O unit 4 on the extension base (1) issues an interrupt request as compared with the conventional interrupt signal wiring method. Interrupt input circuit 3d
, The delay time until the interrupt request arrives becomes shorter.

【0037】2段目の増設ベース(2)上に装着されて
いるI/Oユニット4が割込み要求を発生すると、増設
ベース(2)上の割込み信号線7bがローレベルに駆動
され、続いて増設ベース(2)上の増設ベース割込み制
御回路8内のANDゲート8aが増設ベース(2)上の
割込み信号線7cと増設ケーブル(2)内の割込み信号
線および1段目の増設ベース(1)上の割込み信号線7
dをローレベルに駆動する。
When the I / O unit 4 mounted on the second-stage extension base (2) issues an interrupt request, the interruption signal line 7b on the extension base (2) is driven to a low level, and subsequently. The AND gate 8a in the extension base interrupt control circuit 8 on the extension base (2) includes the interruption signal line 7c on the extension base (2), the interruption signal line in the extension cable (2), and the first-stage extension base (1). ) Interrupt signal line 7 on
Drive d to low level.

【0038】これにより増設ベース(1)上の増設ベー
ス割込み制御回路8内のANDゲート8aが増設ベース
(1)上の割込み信号線7cと増設ケーブル(1)内の
割込み信号線および基本ベース1上の割込み信号線5d
をローレベルに駆動し、基本ベース割込み制御回路6内
のANDゲート6aが割込み信号線5cをLowレベル
に駆動してCPUユニット3内の割込み入力回路3dに
割込み要求が発生したことを通知する。
As a result, the AND gate 8a in the extension base interrupt control circuit 8 on the extension base (1) is connected to the interruption signal line 7c on the extension base (1), the interruption signal line in the extension cable (1) and the basic base 1. Upper interrupt signal line 5d
To a low level, the AND gate 6a in the basic base interrupt control circuit 6 drives the interrupt signal line 5c to a low level, and notifies the interrupt input circuit 3d in the CPU unit 3 that an interrupt request has occurred.

【0039】よって、図1の例では、基本ベースから一
番遠い位置にある2段目の増設ベース(2)上のI/O
ユニット4から割込み要求が発生した場合には、AND
ゲート3個を駆動するための数nsecの遅延時間は余
分に必要になるものの、増設ベース(2)以外の増設ベ
ース上の通常数10cmに及ぶ割込み信号線7bと基本
ベース1上の割込み信号線5bのインダクタンスや静電
容量による遅延時間分がなくなるため、ANDゲート駆
動による遅延時間が相殺され、2段目の増設ベース
(2)上のI/Oユニット4が割込み要求をしてからC
PUユニット3内の割込み入力回路3dに割込み要求が
到達するまでの遅延時間は、従来の割込み信号配線方式
のときと同等の遅延時間となる。
Therefore, in the example of FIG. 1, the I / O on the second-stage extension base (2) located farthest from the basic base.
When an interrupt request is issued from the unit 4, AND
Although an extra delay time of several nsec for driving three gates is required, an interrupt signal line 7b normally extending to several tens of cm on an extension base other than the extension base (2) and an interrupt signal line on the basic base 1 Since the delay time due to the inductance and the capacitance of 5b disappears, the delay time due to the AND gate drive is canceled, and the C / C is output after the I / O unit 4 on the second-stage expansion base (2) issues an interrupt request.
The delay time until the interrupt request reaches the interrupt input circuit 3d in the PU unit 3 is equal to the delay time in the conventional interrupt signal wiring system.

【0040】以上のことから、割込み信号の配線距離が
基本ベース1上のCPUユニット3に近いベースに搭載
されているI/Oユニットほど、割込み要求をCPUユ
ニットへ速く伝達できることになる。
As described above, an I / O unit mounted on a base closer to the CPU unit 3 on the basic base 1 can transmit an interrupt request to the CPU unit faster.

【0041】また、基本ベース割込み制御回路6、増設
ベース割込み制御回路8が搭載されていることにより、
I/Oユニット内のオープンコレクタ出力のインバータ
ゲート出力をワイヤードOR接続している割込み信号線
の配線長が短くなったため、インダクタンスや静電容量
が小さくなり、I/Oユニットが割込み要求を解除した
ときに、ワイヤードOR接続している割込み信号線5
b、7bがプルアップ抵抗によりローレベルからハイレ
ベルに状態遷移する時間が短くなる。
Further, since the basic base interrupt control circuit 6 and the extension base interrupt control circuit 8 are mounted,
Since the wiring length of the interrupt signal line connecting the OR gate output of the open collector output in the I / O unit with the wired OR connection was shortened, the inductance and the capacitance were reduced, and the I / O unit released the interrupt request. Sometimes, the interrupt signal line 5 that is wired OR-connected
The time required for b and 7b to transition from a low level to a high level due to the pull-up resistor is reduced.

【0042】以上のように、この発明によるプログラマ
ブルコントローラは、従来のベース上に数個の電気部品
を追加して割込み制御回路を設けることによって、シス
テムバスおよび増設ケーブル内の割込み信号線の本数を
増やすことなく、またCPUユニットやI/Oユニット
の割込み回路を変更することなく、割込み要求・解除を
CPUユニットへ伝達するまでの時間を高速化すること
ができる。
As described above, the programmable controller according to the present invention reduces the number of interrupt signal lines in the system bus and the extension cable by adding several electric components to the conventional base and providing the interrupt control circuit. The time required to transmit an interrupt request / release to the CPU unit can be shortened without increasing the number of interrupts and without changing the interrupt circuit of the CPU unit or the I / O unit.

【0043】上述のように、CPUユニット3内の割込
み入力回路3dに割込み要求の発生が通知され、割込み
入力回路3dを介してマイクロプロセッサ3aが割込み
要求を受けると、メモリ3bに格納されている割込み処
理プログラムを起動する。
As described above, the occurrence of an interrupt request is notified to the interrupt input circuit 3d in the CPU unit 3, and when the microprocessor 3a receives the interrupt request via the interrupt input circuit 3d, it is stored in the memory 3b. Start the interrupt processing program.

【0044】なお、この場合も、便宜上、CPUユニッ
ト3は割込み処理プログラムを起動する以前に、基本ベ
ースから近い増設ベースから順番に増設ベース(1)、
増設ベース(2)〜増設ベース(j)と位置付けている
こと、および各ベース毎にI/Oユニット4の装着有無
および装着位置を把握しており、装着順にI/Oユニッ
ト(1)、I/Oユニット(2)〜I/Oユニット
(i)と位置付けていることを前提条件とする。
Also in this case, for convenience, before the CPU unit 3 activates the interrupt processing program, the CPU unit 3 sequentially starts with the extension bases (1),
The extension bases (2) to (j) are positioned, and the presence / absence and mounting position of the I / O unit 4 are known for each base, and the I / O units (1), I It is assumed that they are positioned as / O unit (2) to I / O unit (i).

【0045】図2、図3は、この発明によるプログラマ
ブルコントローラにおける割込み処理プログラムの処理
フローを示している。割込み処理プログラムが起動され
ると、CPUユニット3は、まず基本ベース1に搭載さ
れている基本ベース割込み制御回路6内の割込み信号状
態通知回路6bをアクセスし(ステップS1)、基本ベ
ース1上のI/Oユニット4からの割込み信号線5bお
よび増設ベースからの割込み信号線5dの状態(ハイレ
ベルまたはローレベル)をモニタし、基本ベース1に搭
載されているI/Oユニット4からの割込み要求有無を
判別するための情報および増設ベース3に搭載されてい
るI/Oユニット4からの割込み要求有無を判別するた
めの情報を得る。
FIGS. 2 and 3 show a processing flow of an interrupt processing program in the programmable controller according to the present invention. When the interrupt processing program is started, the CPU unit 3 first accesses the interrupt signal status notification circuit 6b in the basic base interrupt control circuit 6 mounted on the basic base 1 (step S1). The state (high level or low level) of the interrupt signal line 5b from the I / O unit 4 and the interrupt signal line 5d from the extension base is monitored, and an interrupt request from the I / O unit 4 mounted on the basic base 1 is monitored. Information for determining the presence / absence and information for determining the presence / absence of an interrupt request from the I / O unit 4 mounted on the extension base 3 are obtained.

【0046】つぎに、割込み信号線5bの状態より基本
ベース1に搭載されているI/Oユニット4からの割込
み要求の有無を判別する(ステップS2)。割込み要求
が有りの場合には、従来の割込み処理と同様、チェック
対象のユニット番号iを1にセットし(ステップS
3)、基本ベース1に装着されている全てのI/Oユニ
ット4の割込み信号状態通知回路4cをアクセスして割
込み要求の有無を判別し(ステップS4、ステップS
5)、割込み要求が有るI/Oユニットについては所定
の割込み処理を行う(ステップS6)。
Next, it is determined whether or not there is an interrupt request from the I / O unit 4 mounted on the basic base 1 from the state of the interrupt signal line 5b (step S2). If there is an interrupt request, the unit number i to be checked is set to 1 as in the case of the conventional interrupt processing (step S).
3) Access to the interrupt signal status notifying circuits 4c of all the I / O units 4 mounted on the basic base 1 to determine the presence or absence of an interrupt request (step S4, step S4).
5) A predetermined interrupt process is performed for the I / O unit having the interrupt request (step S6).

【0047】以降、基本ベース1に装着されているI/
Oユニット4の台数分、その処理を繰り返す(ステップ
S7、ステップS8、ステップS4〜ステップS7)。
Thereafter, the I / O mounted on the basic base 1
The process is repeated for the number of O units 4 (step S7, step S8, step S4 to step S7).

【0048】もし、ステップS2にて、基本ベース1に
搭載されているI/Oユニット4からの割込み要求が無
しの場合には、基本ベース1ではなくて増設ベース2上
のI/Oユニット4からの割込み要求であると判断で
き、ステップS2からステップS10にジャンプでき、
基本ベース1に装着されている全てのI/Oユニット4
の割込み信号状態通知回路4cをアクセスする必要がな
くなる。
If there is no interrupt request from the I / O unit 4 mounted on the basic base 1 in step S2, the I / O unit 4 on the extension base 2 is used instead of the basic base 1. Can be determined to be an interrupt request from step S2, and the process can jump from step S2 to step S10.
All I / O units 4 mounted on the basic base 1
Need not access the interrupt signal status notifying circuit 4c.

【0049】また前述のとおり、基本ベース1に搭載さ
れている基本ベース割込み制御回路6内の割込み信号状
態通知回路6bをアクセスすることにより得た情報によ
り、全ての増設ベース2に搭載されているI/Oユニッ
ト4からの割込み要求の有無を判別することができる
(ステップS9)。この判別にて割り込み要求無しの場
合には割込み処理プログラムは直ちに終了する。
As described above, the information is obtained by accessing the interrupt signal status notifying circuit 6b in the basic base interrupt control circuit 6 mounted on the basic base 1, and is mounted on all the additional bases 2. It is possible to determine whether or not there is an interrupt request from the I / O unit 4 (step S9). If there is no interrupt request in this determination, the interrupt processing program ends immediately.

【0050】これに対して、増設ベース2に搭載されて
いるI/Oユニット4からの割り込み要求が有ると判断
された場合には、チェック対象の増設ベース番号jを1
にセットし(ステップS10)、基本ベース1に近い増
設ベース(j)から順に増設ベース上の割込み制御回路
8内の割込み信号状態通知回路8bをアクセスし(S1
1)、自増設ベース上のI/Oユニット4からの割込み
信号線7bおよび他の増設ベース(後段の増設ベース)
からの割込み信号線7dの状態(ハイレベルまたはロー
レベル)をモニタし、自増設ベースに搭載されているI
/Oユニット4からの割込み要求有無を判別するための
情報および後段の増設ベースに搭載されているI/Oユ
ニット4からの割込み要求有無を判別するための情報を
得る。
On the other hand, when it is determined that there is an interrupt request from the I / O unit 4 mounted on the extension base 2, the extension base number j to be checked is set to 1
(Step S10), and sequentially accesses the interrupt signal state notification circuit 8b in the interrupt control circuit 8 on the extension base from the extension base (j) close to the basic base 1 (S1).
1), an interrupt signal line 7b from the I / O unit 4 on the self extension base and another extension base (extension base at a later stage)
Monitors the state (high level or low level) of the interrupt signal line 7d from the I / O module,
Information for determining the presence / absence of an interrupt request from the I / O unit 4 and information for determining the presence / absence of an interrupt request from the I / O unit 4 mounted on the subsequent extension base are obtained.

【0051】つぎに、割込み信号線7bの状態より自増
設ベースに搭載されているI/Oユニット4からの割込
み要求の有無を判別する(ステップS12)。割込み要
求が有りの場合には、従来の割込み処理と同様、チェッ
ク対象のユニット番号iを1にセットし(ステップS1
3)、自増設ベースに装着されている全てのI/Oユニ
ット4の割込み信号状態通知回路4cをアクセスして割
込み要求の有無を判別し(ステップS14、ステップS
15)、割込み要求が有るI/Oユニットについては所
定の割込み処理を行う(ステップS16)。
Next, it is determined from the state of the interrupt signal line 7b whether or not there is an interrupt request from the I / O unit 4 mounted on the own extension base (step S12). If there is an interrupt request, the unit number i to be checked is set to 1 as in the conventional interrupt processing (step S1).
3) Access to the interrupt signal status notifying circuits 4c of all the I / O units 4 mounted on the self extension base to determine whether or not there is an interrupt request (step S14, step S14).
15) For the I / O unit having the interrupt request, a predetermined interrupt process is performed (step S16).

【0052】以降、自増設ベースに装着されているI/
Oユニット4の台数分、その処理を繰り返す(ステップ
S17、ステップS18、ステップS14〜ステップS
17)。
Thereafter, the I / O mounted on the self-
The process is repeated for the number of O units 4 (step S17, step S18, step S14 to step S18).
17).

【0053】もし、ステップS12にて、自増設ベース
に搭載されているI/Oユニット4からの割込み要求が
無しの場合には、自増設ベースでなくて自増設ベースよ
り後段の増設ベース上のI/Oユニット4からの割込み
要求であると判断でき、ステップS12からステップS
19にジャンプでき、自増設ベースに装着されている全
てのI/Oユニット4の割込み信号状態通知回路4cを
アクセスする必要がなくなる。
In step S12, if there is no interrupt request from the I / O unit 4 mounted on the self-extension base, it is not on the self-extension base but on the extension base located downstream of the self-extension base. It can be determined that the request is an interrupt request from the I / O unit 4.
19, so that it is not necessary to access the interrupt signal state notification circuits 4c of all the I / O units 4 mounted on the self-expanding base.

【0054】以上のように、どのI/Oユニットが割り
込み要求しているかについての判断を、あらかじめベー
ス単位で判断していくため、特にI/Oユニットや増設
ベースの装着台数が多いほど、判断するための時間が従
来に比べ短くなり、全体の割込み処理プログラムの実行
時間を短くすることができる。
As described above, the determination as to which I / O unit issues an interrupt request is made in advance in base units. In particular, the larger the number of I / O units and extension bases mounted, the greater the determination. The time required to execute the interrupt processing program is shorter than before, and the execution time of the entire interrupt processing program can be shortened.

【0055】[0055]

【発明の効果】以上の説明から理解される如く、この発
明によるプログラマブルコントローラによれば、基本ベ
ース上のI/Oユニットからの割込み信号と増設ベース
接続用の増設コネクタ側からの割込み信号とが割込み信
号線分断手段によって電気的に分断されているから、或
る一つのI/OユニットからCPUユニットへ割込み要
求・解除を伝達するまでの割込み信号線の経路を短くで
き、I/OユニットからCPUユニットへ割込み要求・
解除を通知するための割込み信号の伝播遅延を少なくす
ることができる。これにより、I/Oユニットから割込
み信号線によりCPUユニットへ割込み要求・解除を伝
達する時間を高速化することができ、特に、CPUユニ
ットに近いベースに装着されているI/Oユニットから
の割込み要求・解除のための割込み信号ほど高速化する
ことができる。
As can be understood from the above description, according to the programmable controller of the present invention, the interrupt signal from the I / O unit on the basic base and the interrupt signal from the additional connector for connecting the additional base are provided. Since the interrupt signal line is electrically separated by the interrupt signal line separating means, the path of the interrupt signal line from one interrupt request / release to the CPU unit can be shortened from one I / O unit to the I / O unit. Interrupt request to CPU unit
Propagation delay of an interrupt signal for notifying release can be reduced. As a result, the time required for transmitting an interrupt request / release from the I / O unit to the CPU unit via the interrupt signal line can be shortened. In particular, an interrupt from the I / O unit mounted on the base close to the CPU unit can be achieved. The speed of an interrupt signal for request / release can be increased.

【0056】つぎの発明によるプログラマブルコントロ
ーラによれば、自増設ベース上のI/Oユニットからの
割込み信号と他の増設ベース接続用の増設コネクタ側か
らの割込み信号とが割込み信号線分断手段によって電気
的に分断されているから、或る一つのI/Oユニットか
らCPUユニットへ割込み要求・解除を伝達するまでの
割込み信号線の経路を短くでき、I/OユニットからC
PUユニットへ割込み要求・解除を通知するための割込
み信号の伝播遅延を少なくすることができる。これによ
り、I/Oユニットから割込み信号線によりCPUユニ
ットへ割込み要求・解除を伝達する時間を高速化するこ
とができ、特に、CPUユニットに近いベースに装着さ
れているI/Oユニットからの割込み要求・解除のため
の割込み信号ほど高速化することができる。
According to the programmable controller of the next invention, the interrupt signal from the I / O unit on the self-extensible base and the interrupt signal from the extra connector for connecting another extensible base are electrically connected by the interrupt signal line disconnecting means. , The path of the interrupt signal line from the transmission of the interrupt request / release to the CPU unit from a certain I / O unit can be shortened.
The propagation delay of the interrupt signal for notifying the PU unit of the interrupt request / release can be reduced. As a result, the time required for transmitting an interrupt request / release from the I / O unit to the CPU unit via the interrupt signal line can be shortened. In particular, an interrupt from the I / O unit mounted on the base close to the CPU unit can be achieved. The speed of an interrupt signal for request / release can be increased.

【0057】つぎの発明によるプログラマブルコントロ
ーラによれば、基本ベースあるいは増設ベースの割込み
信号線分断手段はANDゲートで構成されているから、
割込み信号線の電気的な分断が一般的な回路素子によっ
て簡便に行うことができる。
According to the programmable controller of the next invention, since the basic-base or extension-base interrupt signal line disconnecting means is constituted by an AND gate,
Electrical disconnection of the interrupt signal line can be easily performed by a general circuit element.

【0058】つぎの発明によるプログラマブルコントロ
ーラによれば、基本ベース上のI/Oユニットから割込
み要求がない場合には基本ベース上のI/Oユニットに
ついて割込み要求元のI/Oユニットの検索を行わない
から、CPUユニットが実行する割込み処理プログラム
の実行時間を短くでき、これによりPC全体の処理時間
を短くすることができる。
According to the programmable controller of the next invention, when there is no interrupt request from the I / O unit on the basic base, the I / O unit of the interrupt request source is searched for the I / O unit on the basic base. Therefore, the execution time of the interrupt processing program executed by the CPU unit can be shortened, whereby the processing time of the entire PC can be shortened.

【0059】つぎの発明によるプログラマブルコントロ
ーラによれば、自増設ベース上のI/Oユニットから割
込み要求がない場合には自増設ベース上のI/Oユニッ
トについて割込み要求元のI/Oユニットの検索を行わ
ないから、CPUユニットが実行する割込み処理プログ
ラムの実行時間を短くでき、これによりPC全体の処理
時間を短くすることができる。
According to the programmable controller of the next invention, when there is no interrupt request from the I / O unit on the self-extensible base, the I / O unit on the self-extensible base is searched for the I / O unit that has issued the interrupt request. Is not performed, the execution time of the interrupt processing program executed by the CPU unit can be shortened, whereby the processing time of the entire PC can be shortened.

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

【図1】 この発明によるプログラマブルコントローラ
の一つの実施の形態を示すシステム構成図である。
FIG. 1 is a system configuration diagram showing one embodiment of a programmable controller according to the present invention.

【図2】 この発明によるプログラマブルコントローラ
における割込み処理フローの前半部分を示すフローチャ
ートである。
FIG. 2 is a flowchart showing the first half of an interrupt processing flow in the programmable controller according to the present invention.

【図3】 この発明によるプログラマブルコントローラ
における割込み処理フローの後半部分を示すフローチャ
ートである。
FIG. 3 is a flowchart showing the latter half of the interrupt processing flow in the programmable controller according to the present invention.

【図4】 従来におけるプログラマブルコントローラの
一つの実施の形態を示すシステム構成図である。
FIG. 4 is a system configuration diagram showing one embodiment of a conventional programmable controller.

【図5】 従来のプログラマブルコントローラにおける
割込み処理フローの前半部分を示すフローチャートであ
る。
FIG. 5 is a flowchart showing a first half of an interrupt processing flow in a conventional programmable controller.

【図6】 従来のプログラマブルコントローラにおける
割込み処理フローの後半部分を示すフローチャートであ
る。
FIG. 6 is a flowchart showing a latter half of an interrupt processing flow in a conventional programmable controller.

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

1 基本ベース、2 増設ベース、3 CPUユニッ
ト、3a マイクロプロセッサ、3b メモリ、3c
システムバス制御回路、3d 割込み入力回路、4 I
/Oユニット、 4a 割込み要求回路、 4b イン
バータゲート、4c 割込み信号状態通知回路、5 基
本ベース上のシステムバス、5a、5b、5c、5d
基本ベース上の割込み信号線、5e 基本ベース上の割
込み信号以外の信号線、6 基本ベース割込み制御回
路、6a ANDゲート、6b 割込み信号状態通知回
路、6c プルアップ抵抗、7 増設ベース上のシステ
ムバス、7a、7b、7c、7d 増設ベース上の割込
み信号線、7e 増設ベース上の割込み信号以外の信号
線、8 増設ベース割込み制御回路、8a ANDゲー
ト、8b 割込み信号状態通知回路、8c、8d プル
アップ抵抗、9 増設ケーブル、10 増設コネクタ、
11 電源ユニット。
1 basic base, 2 extension base, 3 CPU unit, 3a microprocessor, 3b memory, 3c
System bus control circuit, 3d interrupt input circuit, 4 I
/ O unit, 4a interrupt request circuit, 4b inverter gate, 4c interrupt signal status notification circuit, 5 system bus on basic base, 5a, 5b, 5c, 5d
Interrupt signal line on basic base, 5e Signal line other than interrupt signal on basic base, 6 basic base interrupt control circuit, 6a AND gate, 6b interrupt signal status notification circuit, 6c pull-up resistor, 7 system bus on extension base 7a, 7b, 7c, 7d Interrupt signal line on extension base, 7e Signal line other than interrupt signal on extension base, 8 Extension base interrupt control circuit, 8a AND gate, 8b Interrupt signal status notification circuit, 8c, 8d pull Up resistor, 9 extension cable, 10 extension connector,
11 Power supply unit.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 基本ベースおよび増設ベース上の複数の
I/Oユニットからの割込み信号をシステムバス内の一
つの共有化された割込み信号線を介して基本ベース上の
CPUユニットへ伝達するプログラマブルコントローラ
において、 基本ベースは、基本ベース上のI/Oユニットからの割
込み信号と増設ベース接続用の増設コネクタ側からの割
込み信号とを電気的に分断し、そのいずれの信号もCP
Uユニットに与えることができる割込み信号線分断手段
を有していることを特徴とするプログラマブルコントロ
ーラ。
1. A programmable controller for transmitting interrupt signals from a plurality of I / O units on a basic base and an extension base to a CPU unit on the basic base via one shared interrupt signal line in a system bus. In the basic base, the interrupt signal from the I / O unit on the basic base and the interrupt signal from the extension connector for connecting the extension base are electrically separated, and any of the signals
A programmable controller comprising interrupt signal line disconnecting means that can be given to a U unit.
【請求項2】 基本ベースおよび増設ベース上の複数の
I/Oユニットからの割込み信号をシステムバス内の一
つの共有化された割込み信号線を介して基本ベース上の
CPUユニットへ伝達するプログラマブルコントローラ
において、 増設ベースは、自増設ベース上のI/Oユニットからの
割込み信号と他の増設ベース接続用の増設コネクタ側か
らの割込み信号とを電気的に分断し、そのいずれの信号
もCPUユニット側の増設コネクタに与えることができ
る割込み信号線分断手段を有していることを特徴とする
プログラマブルコントローラ。
2. A programmable controller for transmitting interrupt signals from a plurality of I / O units on a basic base and an extension base to a CPU unit on the basic base via one shared interrupt signal line in a system bus. In the extension base, the interruption signal from the I / O unit on the extension base itself and the interruption signal from the extension connector for connecting another extension base are electrically separated, and any of the signals is connected to the CPU unit. A programmable controller comprising interrupt signal line disconnecting means that can be given to the additional connector.
【請求項3】 前記基本ベースあるいは前記増設ベース
の割込み信号線分断手段はANDゲートであることを特
徴とする請求項1または2に記載のプログラマブルコン
トローラ。
3. The programmable controller according to claim 1, wherein the interrupt signal line disconnecting means of the basic base or the extension base is an AND gate.
【請求項4】 前記割込み信号線分断手段によって基本
ベース上のI/Oユニットからの割込み信号線と増設ベ
ース接続用の増設コネクタ側からの割込み信号線の状態
より割込み要求が基本ベース上のI/Oユニットからの
ものか増設ベース上のI/Oユニットからのものかを判
別してその判別結果をCPUユニットに通知する割込み
信号状態通知手段を前記基本ベースに有し、基本ベース
上のI/Oユニットから割込み要求がある場合にのみ基
本ベース上のI/Oユニットについて割込み要求元のI
/Oユニットを検索して割込み処理を実行し、基本ベー
ス上のI/Oユニットから割込み要求がない場合には基
本ベース上のI/Oユニットについて割込み要求元のI
/Oユニットの検索を行わないことを特徴とする請求項
1に記載のプログラマブルコントローラ。
4. An interrupt request from the I / O unit on the basic base and an interrupt signal line from the extension connector side for connecting the extension base by the interruption signal line dividing means, the interruption request being sent from the I / O unit on the basic base. An interrupt signal state notifying means for judging whether the signal is from the I / O unit or the I / O unit on the extension base and notifying the CPU unit of the judgment result; I / O unit on the basic base only when there is an interrupt request from the I / O unit
The I / O unit on the basic base is searched to execute an interrupt process. If there is no interrupt request from the I / O unit on the basic base, the I / O unit on the basic base
2. The programmable controller according to claim 1, wherein a search for an / O unit is not performed.
【請求項5】 前記割込み信号線分断手段によって自増
設ベース上のI/Oユニットからの割込み信号線と他の
増設ベース接続用の増設コネクタ側からの割込み信号線
の状態より割込み要求が自増設ベース上のI/Oユニッ
トからのものか他の増設ベース上のI/Oユニットから
のものかを判別してその判別結果を基本ベース上のCP
Uユニットに通知する割込み信号状態通知手段を前記増
設ベースに有し、自増設ベース上のI/Oユニットから
割込み要求がある場合にのみ自増設ベース上のI/Oユ
ニットについて割込み要求元のI/Oユニットを検索し
て割込み処理を実行し、自増設ベース上のI/Oユニッ
トから割込み要求がない場合には自増設ベース上のI/
Oユニットについて割込み要求元のI/Oユニットの検
索を行わないことを特徴とする請求項2に記載のプログ
ラマブルコントローラ。
5. An interrupt request is self-expanded by the interrupt signal line disconnecting means based on the status of an interrupt signal line from an I / O unit on the self-expansion base and an interrupt signal line from an extension connector for connecting another expansion base. It is determined whether it is from an I / O unit on the base or from an I / O unit on another extension base, and the determination result is used as the CP on the basic base.
An interrupt signal status notifying means for notifying the U unit is provided in the extension base, and the I / O unit on the self extension base receives the I / O unit of the interrupt request source only when there is an interrupt request from the I / O unit on the self extension base. The I / O unit is searched to execute the interrupt processing. If there is no interrupt request from the I / O unit on the self extension base, the I / O unit on the self extension base is
3. The programmable controller according to claim 2, wherein the I / O unit of the interrupt request source is not searched for the O unit.
JP33790598A 1998-11-27 1998-11-27 Programmable controller Expired - Fee Related JP3366266B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33790598A JP3366266B2 (en) 1998-11-27 1998-11-27 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33790598A JP3366266B2 (en) 1998-11-27 1998-11-27 Programmable controller

Publications (2)

Publication Number Publication Date
JP2000163108A true JP2000163108A (en) 2000-06-16
JP3366266B2 JP3366266B2 (en) 2003-01-14

Family

ID=18313109

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33790598A Expired - Fee Related JP3366266B2 (en) 1998-11-27 1998-11-27 Programmable controller

Country Status (1)

Country Link
JP (1) JP3366266B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009059211A (en) * 2007-08-31 2009-03-19 Hakko Denki Kk Programmable display device and system
JP2011118732A (en) * 2009-12-04 2011-06-16 Yokogawa Electric Corp I/o node
KR20190101141A (en) * 2018-02-22 2019-08-30 엘에스산전 주식회사 Programmable logic controller system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009059211A (en) * 2007-08-31 2009-03-19 Hakko Denki Kk Programmable display device and system
JP2011118732A (en) * 2009-12-04 2011-06-16 Yokogawa Electric Corp I/o node
KR20190101141A (en) * 2018-02-22 2019-08-30 엘에스산전 주식회사 Programmable logic controller system
KR102434128B1 (en) * 2018-02-22 2022-08-18 엘에스일렉트릭(주) Programmable logic controller system

Also Published As

Publication number Publication date
JP3366266B2 (en) 2003-01-14

Similar Documents

Publication Publication Date Title
US20080281475A1 (en) Fan control scheme
US6845467B1 (en) System and method of operation of dual redundant controllers
CN110896372B (en) I2C link switching method, terminal and storage medium
CN110875867B (en) Bus access arbitration device and method
US6145044A (en) PCI bus bridge with transaction forwarding controller for avoiding data transfer errors
US6289407B1 (en) Input/output device for connection and disconnection of active lines
JP2000163108A (en) Programmable controller
WO1996033464A1 (en) Processing unit to clock interface
US20020133660A1 (en) Input/output device for connection and disconnection of active lines
CN113760803A (en) Server and control method
JP3145942B2 (en) Power system
CN111522757A (en) I2C bus-based interrupt reading and clearing control method
US11907155B2 (en) Bus system connecting slave devices with single-wire data access communication
CN112965927B (en) Signal driving system and method based on SPI equipment
JP2993337B2 (en) Double bus control method
US20060041707A1 (en) Computer systems with multiple CPU configuration
US20080288626A1 (en) structure for resetting a hypertransport link in a blade server
EP4198756B1 (en) Daisy-chain spi integrated circuit and operation method thereof
JP3852882B2 (en) Master-slave device
JP2015184935A (en) I2c bus arbitration system and arbitration method
JPH05274141A (en) Program loading system
CN114489300B (en) Method and device for resetting Expander chip
US20210297283A1 (en) Master slave communication system capable of reducing manufacturing cost, electronic device, control method for master slave communication system, and control method for electronic device
JPS58169660A (en) Forming method of multi-processor system
JP2905259B2 (en) System configuration change control method

Legal Events

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

Free format text: PAYMENT UNTIL: 20071101

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081101

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20081101

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091101

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091101

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101101

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111101

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121101

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20131101

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

LAPS Cancellation because of no payment of annual fees