JPS61288251A - Interruption vector generating method for programmable controller - Google Patents

Interruption vector generating method for programmable controller

Info

Publication number
JPS61288251A
JPS61288251A JP12977285A JP12977285A JPS61288251A JP S61288251 A JPS61288251 A JP S61288251A JP 12977285 A JP12977285 A JP 12977285A JP 12977285 A JP12977285 A JP 12977285A JP S61288251 A JPS61288251 A JP S61288251A
Authority
JP
Japan
Prior art keywords
input
signal
interruption
vector
interrupt
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP12977285A
Other languages
Japanese (ja)
Inventor
Yoshimori Obata
吉盛 小畑
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP12977285A priority Critical patent/JPS61288251A/en
Publication of JPS61288251A publication Critical patent/JPS61288251A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To generate the interrupt vector of a programmable controller without using a setting switch by adding address contents, which are determined in accordance with the attaching position, to the interruption vector of an input/ output module. CONSTITUTION:Before the interruption processing is started, the input/output modules I/O1-I/On with interruption are accessed to store a decoding address signal ADR in a flip-flop F/F, and this signal is used as a part of vector information. This vector information is peculiar information determined in accordance with the attaching position of the input/output module. When an interruption signal IRP is active, a CPU activates a priority level determining signal PRT. This signal PRT passes modules in series, and modules closer to the CPU out of modules where the interruption signal IRP is generated respond successively to send a data signal to the data bus of a bus BUS, and the vector is reported to the CPU.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明はプログラマブルコントローラの割込検出に用い
る割込ベクタの生成方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a method for generating an interrupt vector used for detecting an interrupt in a programmable controller.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

一般にプログラマブルコントローラ(以下PCと呼ぶ)
は、m数の制御対象に対応するために、複数の入出力モ
ジュールを備えている。
Generally programmable controller (hereinafter referred to as PC)
is equipped with a plurality of input/output modules in order to accommodate m number of control objects.

PCは入出力モジュールを介して、定刻スキャン制御や
フリースキャン制御などの単純ループによるプログラム
制御を行うので1通常の計算機に比べて、割込処理の機
能が制約されている。
Since a PC performs simple loop program control such as scheduled scan control and free scan control via an input/output module, the interrupt processing function is limited compared to a normal computer.

従って単純に割込制御の入出力モジュールの使用を考慮
してPCと入出力モジュールの制御信号を決定すると、
一般に割込を持たない入出力モジュールも余分な回路構
成となり、全体的にコストアップとなる。
Therefore, if you simply decide the control signals for the PC and input/output module by considering the use of the input/output module for interrupt control,
In general, input/output modules that do not have interrupts also require extra circuitry, which increases the overall cost.

第5図は通常の計算機における割込付入出力モジュール
と計算機間のインタフェースを示す系統図であり、CP
Uは計算機本体、BUSは割込信号を除くインタフェー
スバス、IRPは割込信号、PRTは優先順位決定信号
、l101〜l10nは割込付入出力モジュール、DE
Cはデコーダ、S1〜Snは設定スイッチである。
Figure 5 is a system diagram showing the interface between the input/output module with interrupts and the computer in a normal computer.
U is the computer main body, BUS is the interface bus excluding interrupt signals, IRP is the interrupt signal, PRT is the priority determination signal, l101 to l10n are input/output modules with interrupts, DE
C is a decoder, and S1 to Sn are setting switches.

第5図では、設定スイッチ81〜Snによって1割込ア
ドレスおよび割込発生時の情報を設定する。
In FIG. 5, one interrupt address and information at the time of occurrence of an interrupt are set by setting switches 81 to Sn.

第6図は、第5図における割込検出動作を示すタイミン
グチャートであり1割込信号ZRPが時点T1でアクテ
ィブになると、CPUは時点T2で優先順位決定信号P
I3丁をアクティブにする。
FIG. 6 is a timing chart showing the interrupt detection operation in FIG.
Activate I3.

優先順位決定信号PRTは入出力モジュールl101〜
l10nを直列に経由しているので、割込信号IRPを
発生している入出力モジュールのうち計算機本体CPu
に近い入出力モジュールが順次応答して上記BUS内の
データバスにデータ信号を送出し、 コード化設定され
た情報およびベクタをCPUに知らせる。
The priority determination signal PRT is sent to the input/output modules l101~
110n in series, so among the input/output modules that generate the interrupt signal IRP, the computer main body CPU
Input/output modules close to the BUS respond sequentially and send data signals to the data bus in the BUS, thereby informing the CPU of encoded information and vectors.

CPLIはベクタを読取り、時点T3にPRTをインア
クティブに戻し、割込信号IRPは応答した割込付入出
力モジュールをl101〜l10n側でインアクティブ
に戻す、(割込が重複しているときは、他のモジュール
が割込を出力しつづける。) ここで問題となるのは、設定スイッチS、〜Soが必要
なことである。
CPLI reads the vector and returns PRT to inactive at time T3, and interrupt signal IRP returns the responding input/output module with interrupt to inactive on the l101 to l10n side (if the interrupt is duplicated, , other modules continue to output interrupts.) The problem here is that setting switches S, ~So are required.

PCの場合は一般に入出力モジュールに設定スイッチが
なく、入出力モジュールの取付位置に応じてPC側で区
別しているが、vl定スイッチを追加すると前述したよ
うに割込を持たない人出カモジュールに対しても余分な
回路構成が必要となり、全体的にコストアップを招くと
いうrJJgがある。
In the case of a PC, there is generally no setting switch on the input/output module, and the PC side distinguishes the input/output module depending on its mounting position, but if a VL constant switch is added, the output module will not have an interrupt, as mentioned above. There is also rJJg that an extra circuit configuration is required for this, leading to an overall cost increase.

〔発明の目的〕[Purpose of the invention]

本発明は、設定スイッチを用いることなく、且つ一般的
な入出力モジュールと同様な取扱いを可能として割込モ
ジュールを制御できるプログラマブルコントローラの割
込ベクタ生成方法を提供することを目的としている。
SUMMARY OF THE INVENTION An object of the present invention is to provide an interrupt vector generation method for a programmable controller that can control an interrupt module without using a setting switch and allowing the same handling as a general input/output module.

〔発明の概要〕[Summary of the invention]

本発明は、割込付入出力モジュールを持つプログラマブ
ルコントローラにおいて、上記入出力モジュールの割込
ベクタに取付位置に対応して決定されるアドレス内容を
付加し、これによって設定スイッチを不用とするプログ
ラマブルコントローラの割込ベクタ生成方法である。
The present invention provides a programmable controller having an input/output module with an interrupt, in which address contents determined in accordance with the mounting position are added to the interrupt vector of the input/output module, thereby eliminating the need for a setting switch. This is an interrupt vector generation method.

〔発明の実施例〕[Embodiments of the invention]

本発明の一実施例を第1図に示す。 An embodiment of the present invention is shown in FIG.

第1[において、PCはプログラマブルコントローラ、
ADHはアドレス信号のうち割込付入出力モジュールI
10.〜l10nの選択を個々に行うために必要なデコ
ーダ用アドレス信号、 DECはデコーダ、SL□〜S
LnはデコーダDECの出力する選択信号である。
In the first [, the PC is a programmable controller,
ADH is the input/output module I with interrupt among the address signals.
10. Decoder address signal required to individually select ~l10n, DEC is decoder, SL□~S
Ln is a selection signal output from the decoder DEC.

第1図は、PCの特徴である入出力モジュールを取付位
置によって区分するための方法を、デコーダDECt−
Hけることで実施している場合であるが。
FIG. 1 shows a method for classifying input/output modules, which is a feature of a PC, by mounting position using a decoder DECt-
In some cases, this is done by making a mistake.

割込発生時の割込付入出力モジュールエ10.〜l10
nの動作は第6図のタイミングチャートに示すものと同
様である。
Input/output module with interrupt when interrupt occurs 10. ~l10
The operation of n is similar to that shown in the timing chart of FIG.

第1図の場合はベクタのデータ生成を、取付位置を示す
デコーダ用アドレス信号ADHの状態を記憶して行って
いるので、従来の第5図の場合のような設定スイッチ5
L−Snは不用となる。
In the case of FIG. 1, vector data is generated by storing the state of the decoder address signal ADH indicating the mounting position, so the setting switch 5 as in the conventional case of FIG.
L-Sn becomes unnecessary.

デコーダ用アドレス信号^DRを記憶させる回路の一例
を第2図に示す。
FIG. 2 shows an example of a circuit for storing the decoder address signal DR.

第2図において、ADHは第1図におけるデコーダ用ア
ドレス信号、  SL、は取付位置によって接続される
第1図における選択信号SL、〜SLnの何れが一つ、
5TIIは割込処理以外の一般の入出力処理で使用され
るストローブ信号、F/Fはフリップフロップ、AND
はアンドゲート、 13Fはゲート付バッファ、Gはゲ
ート許可信号、 DATAは第1図のインクフェースバ
スBUSに含まれるデータバスである。
In FIG. 2, ADH is the address signal for the decoder in FIG. 1, and SL is one of the selection signals SL to SLn in FIG. 1, which are connected depending on the mounting position.
5TII is a strobe signal used in general input/output processing other than interrupt processing, F/F is a flip-flop, AND
is an AND gate, 13F is a gated buffer, G is a gate enable signal, and DATA is a data bus included in the ink face bus BUS in FIG.

第2図においては、割込処理を開始する以前に、一度割
込付入出力モジュールのアクセスをPC側で行い、フリ
ップフロップF/Fにデコーダ用アドレス信号^DRを
記憶させてベクタ情報の一部としている。
In Fig. 2, before starting interrupt processing, the input/output module with interrupt is accessed once on the PC side, the decoder address signal ^DR is stored in the flip-flop F/F, and vector information is stored. Department.

とのベクタ情報は割込付入出力モジュールl101〜I
 / Onの取付位置で決定される固有のものとなり、
重複される恐れはない。
The vector information with interrupt input/output modules l101 to I
/ It is unique and determined by the installation position of On.
There is no risk of duplication.

本発明の他の実施例を第3図に示す。Another embodiment of the invention is shown in FIG.

第3図は入出力モジュールの区別を、入出力モジュール
側で行う場合であり、 PT、〜PTnは入出力モジュ
ールの取付位置に応じて設けられたアドレス信号^DR
に対応して一致を得るための固定パターン信号である。
Figure 3 shows the case where input/output modules are distinguished on the input/output module side, and PT, ~PTn are address signals ^DR provided according to the mounting position of the input/output module.
This is a fixed pattern signal for obtaining a match corresponding to.

この場合は、第1図における選択信号SL1〜SLl。In this case, the selection signals SL1 to SLl in FIG.

を、 アドレス信号ADRと固定パターン信号PT、〜
PTnの一致によって人出カモジュールの内部で得るよ
うにしている。
, address signal ADR and fixed pattern signal PT, ~
It is obtained inside the turnout module by matching PTn.

第3図の場合にも1人出力モジュールを取付位置によっ
て区分することが可能であり、ベクタ情報を出力するに
は第4図の回路を用いればよい。
In the case of FIG. 3 as well, it is possible to classify the single-person output module according to the mounting position, and the circuit shown in FIG. 4 may be used to output vector information.

すなわち第4図において、割込付入出力モジュールのベ
クタ生成は第3図における固定パターン信号PT、〜P
T、を入力する固定パターン入力部PT。
That is, in FIG. 4, the vector generation of the input/output module with interrupts is based on the fixed pattern signals PT, ~P in FIG.
Fixed pattern input section PT for inputting T.

の状態を常にベクタ情報の一部として出力すればよい。It is sufficient to always output the state as part of the vector information.

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

以上説明したように本発明によれば、プログラマブルコ
ントローラの割込付入出力モジュールの割込ベクタ情報
をインタフェースを介して設定できるので設定スイッチ
が不用となり、これによって割込付入出力モジュールを
一般の入出力モジュールと同等に扱かうことを可能にす
ると共に H定スイッチを用いることによる設定ミス接
触不良などの信頼性低下やコスト上昇を防止することが
できる。
As explained above, according to the present invention, the interrupt vector information of the input/output module with interrupts of the programmable controller can be set via the interface, so a setting switch is unnecessary, and this makes the input/output module with interrupts suitable for general use. This makes it possible to treat it in the same way as an input/output module, and also prevents a decrease in reliability and an increase in cost due to setting errors and contact failures due to the use of an H constant switch.

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

第1図は本発明の一実施例を示すインタフェース系統図
、第2図は第1図におけるベクタ情報記憶・出力回路図
、第3図は本発明の他の実施例を示すインタフェース系
統図、第4図は第3図におけるベクタ情報出力回路図、
第5図は従来の割込付入出力モジュールのインタフェー
ス系統図、第6図は割込検出の動作タイミング図である
。 cpu    計算機本体 BUS    インタフェースバス IRP    割込信号 PRT    優先順位決定信号 DATA    データバス ADHデコーダ用アドレス信号 DECデコーダ 5Lr(SL1〜5Ln)   選択信号STB   
  ストローブ信号 PT! (P丁□〜PTn)   取付位置固定パター
ン信号AND    アンドゲート F/F    フリップフロップ 8F     ゲート付バッファ (8733)代理人 弁理士 猪 股 祥 晃 (はが
1名)@1図 第2図 PT I       PTZ        PT几
第  3  図 第  4  図
FIG. 1 is an interface system diagram showing one embodiment of the present invention, FIG. 2 is a vector information storage/output circuit diagram in FIG. 1, and FIG. 3 is an interface system diagram showing another embodiment of the invention. Figure 4 is a vector information output circuit diagram in Figure 3;
FIG. 5 is an interface system diagram of a conventional input/output module with interrupts, and FIG. 6 is an operation timing diagram of interrupt detection. cpu Computer main body BUS Interface bus IRP Interrupt signal PRT Priority determination signal DATA Data bus ADH address signal for decoder DEC decoder 5Lr (SL1 to 5Ln) Selection signal STB
Strobe signal PT! (Pd□~PTn) Mounting position fixed pattern signal AND gate F/F Flip-flop 8F Gated buffer (8733) Agent Patent attorney Yoshiaki Inomata (1 person) @1 Figure 2 PT I PTZ PT Figure 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 割込付入出力モジュールを持つプログラマブルコントロ
ーラにおいて、上記入出力モジュールの割込ベクタに取
付位置に対応して決定されるアドレス内容を付加するこ
とを特徴とするプログラマブルコントローラの割込ベク
タ生成方法。
An interrupt vector generation method for a programmable controller having an input/output module with an interrupt, the method comprising: adding address contents determined in accordance with a mounting position to the interrupt vector of the input/output module.
JP12977285A 1985-06-17 1985-06-17 Interruption vector generating method for programmable controller Pending JPS61288251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12977285A JPS61288251A (en) 1985-06-17 1985-06-17 Interruption vector generating method for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12977285A JPS61288251A (en) 1985-06-17 1985-06-17 Interruption vector generating method for programmable controller

Publications (1)

Publication Number Publication Date
JPS61288251A true JPS61288251A (en) 1986-12-18

Family

ID=15017828

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12977285A Pending JPS61288251A (en) 1985-06-17 1985-06-17 Interruption vector generating method for programmable controller

Country Status (1)

Country Link
JP (1) JPS61288251A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03142504A (en) * 1989-10-30 1991-06-18 Toshiba Corp Programmable controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03142504A (en) * 1989-10-30 1991-06-18 Toshiba Corp Programmable controller

Similar Documents

Publication Publication Date Title
JPS61288251A (en) Interruption vector generating method for programmable controller
JPH02196355A (en) Memory processing system
JPS58159129A (en) Dma controller of microcomputer system
US5218606A (en) Current-spare switching control system
JP2592064B2 (en) Control device for semiconductor memory cartridge
JPH04115339A (en) Memory error processing system
JPH07152497A (en) Disk control device
KR100382830B1 (en) Apparatus And Method For Fail Control In The Duplexing Board
JPH02297235A (en) Memory data protecting circuit
JPH02157952A (en) Storage device
JPS6435634A (en) Fault recovery system for switcher of disk string
JPH033043A (en) Semiconductor device
JPH02191043A (en) Checking method for digital input circuit
JPH038040A (en) 1-bit error information storage device
JPH0324601A (en) Control method
JPS61173351A (en) Printing device
JPH01116747A (en) Cache lsi
JPH0528056A (en) Memory device
JPS61166654A (en) Memory patrol diagnosis system
JPS6250845B2 (en)
JPH0981465A (en) Main storage controller
JPH0350652A (en) Electronic disk sub-system
JPH0573432A (en) Information processor
JPH02297650A (en) Receiver
JPH0750451B2 (en) Information processing equipment