JPS61110205A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS61110205A
JPS61110205A JP23281684A JP23281684A JPS61110205A JP S61110205 A JPS61110205 A JP S61110205A JP 23281684 A JP23281684 A JP 23281684A JP 23281684 A JP23281684 A JP 23281684A JP S61110205 A JPS61110205 A JP S61110205A
Authority
JP
Japan
Prior art keywords
signal
event
interrupt
state signal
output
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
JP23281684A
Other languages
Japanese (ja)
Other versions
JPH0792690B2 (en
Inventor
Hirokazu Taki
滝 寛和
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 JP59232816A priority Critical patent/JPH0792690B2/en
Publication of JPS61110205A publication Critical patent/JPS61110205A/en
Publication of JPH0792690B2 publication Critical patent/JPH0792690B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To eliminate restrictions placed when a sequence circuit is designed and, at the time, to improve the responsiveness, by making process by selecting the event processing minimum unit of a program in accordance with an interrup tion signal. CONSTITUTION:A preset state signal Pi in putted through an interface 3 is written in a RAM12 and this signal is read out as a past state signal Li and inputted in an event processing circuit 13. The device 13 detects the occurrence of an event by comparing the signals Pi and Li with each other and discriminates the necessity and priority of the event processing, and then, sends an interruption signal Ii to a CPU1. The CPU1 refers to an event dealing table corresponding to the interruption and makes processing works by selecting the event processing minimum unit.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、制御対象の各種の状態を示す状態信号にもと
づき、あらかじめ設定されたプログラムを実行して上記
制御対象を制御する制御信号を出力する演算処理手段を
備えたプログラマブルコントローラ(以下PCと略記す
る)に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention executes a preset program based on status signals indicating various states of the controlled object and outputs control signals to control the controlled object. The present invention relates to a programmable controller (hereinafter abbreviated as PC) equipped with an arithmetic processing means.

〔従来の技術〕[Conventional technology]

第6図は一般的なPCの構成を示すブロック図である。 FIG. 6 is a block diagram showing the configuration of a general PC.

図において1は演算処理手段としての中央演算処理装置
(以下CPUと略記する)、2は制御信号に対する出力
インタフェース、3は図示しない状態検出手段からの状
態信号に対する入力インタフェース、4はランダムアク
セスメモリ(以下RAMと略記する)、5はユーザプロ
グラムメモリ、6はシステムプログラムメモリ、7はシ
ステムコンソールである。
In the figure, 1 is a central processing unit (hereinafter abbreviated as CPU) as arithmetic processing means, 2 is an output interface for control signals, 3 is an input interface for status signals from status detection means (not shown), and 4 is a random access memory ( 5 is a user program memory, 6 is a system program memory, and 7 is a system console.

入力インタフェース3を介しての状態信号が所定の条件
に合致したときは過去に出力された制御信号の順序とは
関係なく出力インタフェース2を介して所定の制御信号
を出力し、又は状態信号を考慮しながら所定の順序で制
御信号を出力するのであるが、これらの動作はユーザプ
ログラムメモIJ 5から続出されるプログラムによっ
て決定される。
When the status signal via the input interface 3 meets a predetermined condition, the predetermined control signal is output via the output interface 2 regardless of the order of control signals output in the past, or the status signal is taken into account. control signals are output in a predetermined order, and these operations are determined by a program successively output from the user program memo IJ5.

したがって、PCのユーザは制御対象に適したプログラ
ムをあらかじめ作成しシステムコンソール7を用いてユ
ーザプログラムメモリ5に格納してお(。CPUIはシ
ステムプログラムメモリ6内の1111 御アルゴリズ
ムに従ってユーザプログラムメモリ5の内容を解釈して
、状態信号の条件に従って制御信号を作成し出力インタ
フェース2を介して出力し制御対象を制御する。
Therefore, the PC user must create a program suitable for the controlled object in advance and store it in the user program memory 5 using the system console 7 (the CPU is programmed using the 1111 in the system program memory 6 according to the control algorithm). It interprets the contents, creates a control signal according to the conditions of the status signal, and outputs it via the output interface 2 to control the controlled object.

ところで、この種のPCの状態信号と制御信号との間の
関係を定める制御アルゴリズムとしては、リレー回路シ
ミュレーション方式、テーブルルックアップ方式、及び
工程歩道方式の3種類がある。
By the way, there are three types of control algorithms for determining the relationship between status signals and control signals of this type of PC: a relay circuit simulation method, a table lookup method, and a process walk method.

第7図及び第8図はそれぞれリレー回路シミュレーショ
ン方式を示す回路接続図であり、これらの図において「
入力」として示す部分は入力インタフェース3からの状
態信号を示し、第7図ではリレー接点の閉接又は開放、
第8図においては信号論理のrlJ  rOJにより、
対応する状態信号の論理を表し、「出力」として示す部
分は出力インタフェース2からの制御信号を示し、第7
図ではリレーコイルの付勢又は消勢、第8図においては
信号論理のrlJ  rOJにより対応する制御信号の
論理を表す。
Figures 7 and 8 are circuit connection diagrams showing the relay circuit simulation method, and in these figures, "
The part indicated as "input" indicates the status signal from the input interface 3, and in FIG.
In FIG. 8, due to the signal logic rlJ rOJ,
represents the logic of the corresponding state signal, the part denoted as "output" indicates the control signal from the output interface 2;
In the figure, the logic of the corresponding control signal is represented by energization or deenergization of the relay coil, and in FIG. 8, the signal logic rlJ rOJ.

第9図はリレー回路シミュレーション方式の制御アルゴ
リズムを示すフロー図である。図において8a、8bは
状態信号のそれぞれ特定の条件を示しOKはこの条件に
適合する場合、NGは然らざる場合を示す。条件8a?
OKの時は制御出力9a2となりNGの時は制御出力9
alとなり、そのいずれの場合も条件8bの判断にうつ
る。
FIG. 9 is a flow diagram showing the control algorithm of the relay circuit simulation method. In the figure, 8a and 8b indicate specific conditions of the status signal, and OK indicates that the condition is met, and NG indicates that the condition is not met. Condition 8a?
When OK, control output 9a2; when NG, control output 9
al, and in either case, the judgment is made under condition 8b.

第10図はテーブルルックアップ方式に用いるテーブル
の一例を示す図でテーブル番号(TABLENO)、状
態信号論理(INPUT  ) 、制御信号論理(0[
ITPUT )を対応させて記憶している。したがって
このテーブルはテーブル番号順に読出す。
FIG. 10 is a diagram showing an example of a table used in the table lookup method, in which the table number (TABLENO), status signal logic (INPUT), control signal logic (0[
ITPUT) are stored in correspondence. Therefore, this table is read out in order of table number.

第11図はテーブルルックアップ方式における制御アル
ゴリズムを示すフロー図で、たとえば、条件8cでTA
BLE NO001を続出しINPIIT  の条件を
調べOKならば制御出力9cとなってこのテーブルの0
IITPUTに示す制御信号RY2−1.Ll=1を出
力した後条件8d(すなわちTABLHN0002)に
うつり、条件8cでNGなら直ちに条件8dにうつる。
FIG. 11 is a flow diagram showing the control algorithm in the table lookup method.
BLE NO001 continues and the condition of INPIIT is checked and if it is OK, the control output becomes 9c and 0 in this table.
The control signal RY2-1. shown in IITPUT. After outputting Ll=1, the process moves to condition 8d (ie, TABLHN0002), and if condition 8c is NG, the process immediately moves to condition 8d.

第12図及び第13図はそれぞれ工程歩進方式を示す図
で、第12図は工程テーブルをメモリに記憶する場合を
示し、第13図は工程テーブルをピンボードに設定する
場合を示す。第13図において10はピンボードパネル
、11は制御ピンである。第14図は工程歩進方式の制
御アルゴリズムを示すフロー図であって、たとえば条件
8fが第12図5TEP NO01の条件LS2=1で
あるとすれば、OKの時だけ制御出力9fとして第12
図に示す5OLI−1,5OL2−0の制御信号を出力
し、もしNGならば条件がOKになるまで次のステップ
へは進まない。なお第9図、第11図、第14図に示す
各ステップのうち説明を省略したものもあるが、8 (
アルファベット小文字のサフィックスを伴い)は状態信
号の条件を示し、9 (アルファベント小文字のサフィ
ックスを伴い)は出力インタフェース2を介して出力す
る制御信号を示す。
FIGS. 12 and 13 are diagrams showing the process step system, respectively. FIG. 12 shows the case where the process table is stored in the memory, and FIG. 13 shows the case where the process table is set on a pin board. In FIG. 13, 10 is a pin board panel, and 11 is a control pin. FIG. 14 is a flowchart showing the control algorithm of the step-by-step method. For example, if the condition 8f is the condition LS2=1 of 5TEP NO01 in FIG.
The control signals for 5OLI-1 and 5OL2-0 shown in the figure are output, and if NG, the process does not proceed to the next step until the conditions become OK. Note that some of the steps shown in FIGS. 9, 11, and 14 are omitted from explanation, but 8 (
9 (with an alpha lower case suffix) indicates the condition of the status signal, and 9 (with an alpha vent lower case suffix) indicates the control signal to be output via the output interface 2.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のPCは以上のように構成されているので、制御対
象に応じて上記3種類の制御アルゴリズムが用いられて
いる。しかしながら上記従来のPCにあっては、それぞ
れ以下に示すような問題点を本質的に有している。
Since the conventional PC is configured as described above, the above three types of control algorithms are used depending on the object to be controlled. However, the conventional PCs described above inherently have the following problems.

まず、順序回路の設計つまり、プログラミングに関して
、リレー回路シミュレーション方式とテーブルルックア
ップ方式では、過去に出力された制御信号の順序とは関
係なく現時点における状態信号によって定められる条件
に対応する制御信号を出力するよう構成されているので
、もしこれらの方式によって順序制御を表現しようとす
ると、複雑な非同期順序回路が必要となり、この非同期
順序回路の設計とその動作確認が必要となる。他方、工
程歩進方式では、順序制御とは無関係に、状態信号の所
定の条件が成立した時はいつでも制御信号を出力する場
合、すなわち非常停止、インタロック等を記述すること
ができない。
First, regarding the design of sequential circuits, that is, programming, the relay circuit simulation method and table lookup method output control signals that correspond to the conditions determined by the current state signal, regardless of the order of control signals output in the past. Therefore, if sequential control is to be expressed using these methods, a complicated asynchronous sequential circuit will be required, and this asynchronous sequential circuit will need to be designed and its operation confirmed. On the other hand, in the step-by-step method, it is not possible to describe the case where a control signal is output whenever a predetermined condition of a status signal is satisfied, regardless of sequence control, that is, an emergency stop, an interlock, etc.

また、状態信号入力の変化に対する制御信号の出力応答
性に関して、リレー回路シミュレーション方式とテーブ
ルルックアップ方式では、CPU1が処理プログラムに
もとづき状態信号の入力をスキャンし、サイクリックに
全命令を演算処理する為、応答速度は非常に遅いものと
なる。他方、工程歩進方式では、ある時点において一つ
の条件判定(例えば第14図の8「)のみを行うので、
対応する制御出力(同じく9f)の応答は高速で行なわ
れるが、同時に複数の条件判定を行なって全制御出力の
応答を高速化することは不可能となる。
Regarding the output responsiveness of control signals to changes in state signal input, in the relay circuit simulation method and table lookup method, the CPU 1 scans the state signal input based on the processing program and cyclically processes all instructions. Therefore, the response speed becomes extremely slow. On the other hand, in the step-by-step method, only one condition judgment (for example, 8" in Fig. 14) is made at a certain point in time, so
Although the response of the corresponding control output (also 9f) is performed at high speed, it is impossible to speed up the response of all control outputs by simultaneously performing multiple condition determinations.

本発明は係る問題点を解決するためになされたもので、
順序回路設計上の制約をなくし、かつ応答性の優れたプ
ログラマブルコントローラを得ることを目的とするもの
である。
The present invention was made to solve such problems,
The purpose of this invention is to eliminate constraints on sequential circuit design and to obtain a programmable controller with excellent responsiveness.

〔問題点を解決するための手段〕[Means for solving problems]

本発明に係るプログラマブルコントローラは、状態検出
手段から出力される状態信号を記憶する状態信号記憶手
段と、上記記憶手段に人力される現在状態信号と上記記
憶手段に記憶されている過去状態信号とを比較し、この
比較結果を処理して演算処理手段に割込み信号を出力す
るイベント処理手段とを備えたものである。
The programmable controller according to the present invention includes a state signal storage means for storing a state signal output from the state detection means, a current state signal manually input to the storage means, and a past state signal stored in the storage means. and event processing means for comparing the comparison result, processing the comparison result, and outputting an interrupt signal to the arithmetic processing means.

(作用) 本発明においては、イベント処理手段により、状態信号
記憶手段に記憶されている過去状態信号と現在状態信号
が比較されて、制御対象の各種の状態の変化、すなわち
イベントの発生が検出され、さらに検出されたイベント
に関する制御演算処理の要否や優先度が判定され、この
判定結果にもとづき演算処理手段に割込み信号が出力さ
れる。演算処理手段は上記割込み信号にもとづきプログ
ラムのイベント処理最小単位の内、各イベントに対応し
てあらかじめ設定されたものを選択して実行する。
(Operation) In the present invention, the event processing means compares the past state signal and the current state signal stored in the state signal storage means to detect changes in various states of the controlled object, that is, the occurrence of an event. Furthermore, the necessity and priority of control arithmetic processing regarding the detected event are determined, and an interrupt signal is output to the arithmetic processing means based on the result of this determination. Based on the interrupt signal, the arithmetic processing means selects and executes one of the minimum event processing units of the program that is preset corresponding to each event.

〔実施例〕〔Example〕

以下、本発明を第1図ないし第4図に示す実施例にもと
づき説明する。なお、前記従来例と同−又は相当部分に
は同一符号を用いその説明は省略する。第1図及び第2
図は本実施例におけるPCの構成を示すブロック図であ
り、各図において12及び13は本発明により備えられ
た状態信号記憶手段としての過去状態信号メモリ及びイ
ベント処理手段としてのイベント処理装置である。上記
過去状態信号メモリ12は読み書き可能なRAMで構成
され、図示しない状H検出手段から入力インタフェース
3を介して入力される現在状態信号Pi  (t=1〜
nunは状態信号、以下同様)が書き込まれ、この書き
込まれた状態信号が過去状態信号Liとして読み出され
上記イベント処理装置13に入力されるように成ってい
る。一方、イベント処理装置13は第2図にその内部構
成を示すように上記現在状態信号Piと過去状態信号L
iとを人力とするEOR回路(排他的論理和回路)14
1と、このEOR回路14iの出力側に設けられたAN
D回路(論理積回路)15iとから成る各状態信号毎に
設けられた論理回路と、制御対象の各種状態の変化、す
なわちイベントの発生に際してCPUIに割込みをかけ
るか否かのイベントマスク信号(割込み要否情報)Mi
が各状態信号毎に記憶され、対応するAND回路15i
にトカされるイベントマスクメモリ16と、上記各AN
D回路15iからの出力を入力してあらかじめ設定され
た優先度に従いCPUIに割込み信号1iを出力する割
込み優先判定回路17とから構成されている。なお、上
記割込み優先判定回路17の優先度はここではもっとも
最近発生した割込み信号がもっとも低く設定されるよう
になっている。
The present invention will be explained below based on the embodiments shown in FIGS. 1 to 4. Note that the same reference numerals are used for the same or equivalent parts as in the conventional example, and the explanation thereof will be omitted. Figures 1 and 2
The figures are block diagrams showing the configuration of the PC in this embodiment, and in each figure, reference numerals 12 and 13 indicate a past state signal memory as a state signal storage means and an event processing device as an event processing means provided according to the present invention. . The past state signal memory 12 is composed of a readable and writable RAM, and receives the current state signal Pi (t=1~
nun is a state signal (the same applies hereinafter) is written, and this written state signal is read out as a past state signal Li and input to the event processing device 13. On the other hand, as shown in FIG. 2, the event processing device 13 receives the current state signal Pi and the past state signal L.
EOR circuit (exclusive OR circuit) using i and human power 14
1 and the AN provided on the output side of this EOR circuit 14i.
A logic circuit provided for each state signal consisting of a D circuit (AND circuit) 15i, and an event mask signal (interrupt Necessity information) Mi
is stored for each state signal, and the corresponding AND circuit 15i
The event mask memory 16 that is stored in
The interrupt priority determination circuit 17 inputs the output from the D circuit 15i and outputs an interrupt signal 1i to the CPUI according to a preset priority. The priority level of the interrupt priority determination circuit 17 is set such that the most recently generated interrupt signal is set to the lowest priority level.

一方、第3図及び第4図は割込み発生時にcpUlが実
行する処理プログラムのイベント処理最小単位のフロー
図及び上記イベント処理最小単位群とイベント対応表と
の関係を示す説明図である。
On the other hand, FIGS. 3 and 4 are flowcharts of the event processing minimum unit of the processing program executed by cpUl when an interrupt occurs, and explanatory diagrams showing the relationship between the event processing minimum unit group and the event correspondence table.

図においてイベント処理最小単位群18は複数のイベン
ト処理最小単位18j(j=1〜mumは処理最小単位
数、以下同様)から成り、各状態信号毎に設けられたイ
ベント対応表19iにもとづき選択される。又上記各イ
ベント処理最小単位18jはそれぞれ条件判定部8hj
と制御出力部9hjから成っている。
In the figure, the event processing minimum unit group 18 consists of a plurality of event processing minimum units 18j (j = 1 to mum is the number of minimum processing units, the same applies hereinafter), which are selected based on an event correspondence table 19i provided for each status signal. Ru. Each of the above event processing minimum units 18j is a condition determination unit 8hj.
and a control output section 9hj.

次に以上のように構成された本実施例の作用について説
明する。まず、イベント処理装置13の各EOR回路1
4iにより、入力インタフェース回路3を介して入力さ
れる各現在状態信号Piと過去状態信号メモリ12内に
上記信号Piに対応して記憶された過去状態信号Liが
比較判定される。ここで、上記各信号Pi、LiO値が
異なれば、すなわち制御対象の対応個所の状態に変化(
イベント)が生じて状態信号が変化していると、EOR
回路141の出力値は「1」 (真)となりイベントの
発生が検出される。このEOR回路14iの出力値はイ
ベントマスクメモリ16の対応するイベントマスク信号
MiによってAND回路15iによりマスク処理される
。ここで、制御対象に従いイベント処理不要な人力に対
しては、上記イベントマスクメモリ16の設定を任意に
行うことで、制御上不要なイベント発生を防ぐことがで
きる。すなわち、イベントマスク信号Miの値が「0」
であるとEOR回路14iの値がrlJ(イベント発生
)であってもこの情報は割込み優先判定回路17には伝
達されない。従って、EOR回路141の出力値が「l
」 (イベント発生)で、かつイベントマスク信号Mi
の値がrlJO時だけAND回路15iの出力値も「1
」となり、割込み優先判定回路エフを経て割込み信号I
fがCPUIに出力される。上記割込み優先判定回路1
7は各AND回路15iの出力値のうち優先度の高いも
の、ここでは入力の発生順にイベントに゛対応した割込
み信号1iをCPUIに出力する。
Next, the operation of this embodiment configured as described above will be explained. First, each EOR circuit 1 of the event processing device 13
4i, each current state signal Pi input via the input interface circuit 3 and the past state signal Li stored in the past state signal memory 12 corresponding to the signal Pi are compared and determined. Here, if the above-mentioned signals Pi and LiO values are different, that is, the state of the corresponding part of the controlled object changes (
If an event) occurs and the status signal changes, EOR
The output value of the circuit 141 becomes "1" (true), and the occurrence of the event is detected. The output value of the EOR circuit 14i is masked by the AND circuit 15i using the corresponding event mask signal Mi of the event mask memory 16. Here, by arbitrarily setting the event mask memory 16 for human power that does not require event processing depending on the object to be controlled, it is possible to prevent unnecessary events from occurring in terms of control. That is, the value of the event mask signal Mi is "0"
In this case, even if the value of the EOR circuit 14i is rlJ (event occurrence), this information is not transmitted to the interrupt priority determination circuit 17. Therefore, the output value of the EOR circuit 141 is
” (event occurrence) and the event mask signal Mi
Only when the value of rlJO, the output value of the AND circuit 15i is also "1".
”, and the interrupt signal I is passed through the interrupt priority judgment circuit F.
f is output to the CPUI. The above interrupt priority determination circuit 1
Reference numeral 7 indicates the output value of each AND circuit 15i with a higher priority, and here outputs an interrupt signal 1i corresponding to an event to the CPUI in the order of input occurrence.

次に剖込み発生時のCPUIの作用について第3図及び
第4図にもとづき説明する。CPUIは前記したイベン
ト処理装置13から割込み信号1iが入力されると、上
記割込みに対応するイベント対応表191 (第4図)
を参照し、上記イベント対応表19iが示すいくつかの
イベント処理最小単位18jを処理、実行する。第3図
に示すように各イベント処理最小単位18jにおいては
、CPUIが現在状態信号Piを含む条件8hjを評価
し、条件8hjが満足(OK)されると制御出力9hj
を処理し、制御対象に対して所定の制御を行なう。条件
8hjが満足されない(NG)と何も処理せずにこのイ
ベント処理最小単位18jを終了し、次のイベント処理
最小単位18j+1の処理に移行する。従って、本実施
例によればCPUIの入力状態信号のスキャンによらず
イベントの発生が検出され、さらに検出されたイベント
の処理の要否や優先度が判定されてCPUIに割込みが
かけられるので、イベントの発生に対する応答速度が非
常に速くなる。また、イベント処理装置13のイベント
マスクメモリ16や割込み優先判定回路17の設定を管
理することにより順序回路のプログラミングも容易とな
る。
Next, the action of the CPUI when a necrosis occurs will be explained based on FIGS. 3 and 4. When the CPUI receives the interrupt signal 1i from the event processing device 13, it displays the event correspondence table 191 (FIG. 4) corresponding to the interrupt.
, and processes and executes several event processing minimum units 18j shown in the event correspondence table 19i. As shown in FIG. 3, in each event processing minimum unit 18j, the CPU evaluates the condition 8hj including the current state signal Pi, and when the condition 8hj is satisfied (OK), the control output 9hj
and performs predetermined control on the controlled object. If the condition 8hj is not satisfied (NG), this event processing minimum unit 18j is ended without any processing, and the processing moves to the next event processing minimum unit 18j+1. Therefore, according to this embodiment, the occurrence of an event is detected without scanning the input status signal of the CPUI, and the necessity and priority of processing of the detected event is determined, and an interrupt is applied to the CPUI. The response speed to the occurrence of is extremely fast. Further, by managing the settings of the event mask memory 16 and the interrupt priority determination circuit 17 of the event processing device 13, programming of the sequential circuit becomes easy.

第5図はCPUIをマルチCPU化した場合の一実施例
である。この例では、イベントが発生すると、管理CP
U1aが割込み優先判定回路17より割込み信号Iiを
受けとり、上記実施例同様対応するイベント対応表19
iを参照する。上記イベント対応表19iが示すイベン
ト処理最小単位18iが複数の場合には、その個々のイ
ベント処理最小単位18iの処理を処理CPU1b〜1
xに割当てる。イベント処理最小単位18iの個数が処
理CPU1b〜1xの個数を上まわる時には、管理CP
U1aが多い分のイベント処理最小華位18iをバッフ
ァリングしておき、処理の終了した処理CPU、1b−
1xに順次割当てる。
FIG. 5 shows an example in which the CPUI is multi-CPU. In this example, when an event occurs, the management CP
U1a receives the interrupt signal Ii from the interrupt priority determination circuit 17, and the corresponding event correspondence table 19 is generated as in the above embodiment.
Refer to i. If there is a plurality of event processing minimum units 18i indicated by the event correspondence table 19i, the processing of each of the event processing minimum units 18i is performed by the processing CPUs 1b to 1.
Assign to x. When the number of event processing minimum units 18i exceeds the number of processing CPUs 1b to 1x, the management CPU
The event processing minimum rank 18i corresponding to the large number of U1a is buffered, and the processing CPU 1b-
1x sequentially.

このようにすることにより、更に高速な処理が可能とな
る。
By doing so, even faster processing becomes possible.

なお、上記各実施例においては、人力状態信号のみ過去
状態信号メモリI2に記憶し、イベント処理を行なった
が、PCの出力信号や内部メモリについてもイベント処
理(変化したことをイベントとする)ができることは言
うまでもない。
In each of the above embodiments, only the human-powered state signal is stored in the past state signal memory I2 and event processing is performed, but event processing (a change is treated as an event) is also performed for the output signal and internal memory of the PC. It goes without saying that it can be done.

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

以上説明したように本発明によれば、状態信号記憶手段
とイベント処理手段とを設けて、上記各手段によりイベ
ントの発生を検出及び処理して制御の必要なイベントに
関してのみ演算処理手段により演算処理するようにした
ので、順序回路設計上の制約のない、かつ応答性の優れ
たプログラマブルコントローラが得られるという効果が
ある。
As explained above, according to the present invention, the state signal storage means and the event processing means are provided, the occurrence of an event is detected and processed by each of the above means, and only the events that require control are processed by the calculation processing means. This has the advantage that a programmable controller with excellent responsiveness and no restrictions on sequential circuit design can be obtained.

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

第1図及び第2図は本発明によるプログラマブルコント
ローラの一実施例を示すブロック図、第3図はイベント
処理最小単位のフロー図、第4図はイベント処理最小単
位群とイベント対応表の関係を示す説明図、第5図は他
の実施例を示すブロック図、第6図は従来例の一般的な
構成を示すブロック図、第7図ないし第9図は上記従来
例におけるリレー回路シミュレーション方式の接続図な
いしフロー図、第10図及び第11図は同じくテーブル
ルックアップ方式のテーブルの一例を示す図及びフロー
図、第12図ないし第14図は同じく工程歩進方式のテ
ーブル及びピンボードの一戦を示す図ないしフロー図で
ある。 ■・・・演算処理手段、12・・・状態信号記憶手段、
13・・・イベント処理手段、141゜15i・・・論
理回路、16・・・メモリ、17・・・割込み優先判定
回路、Pi・・・現在状態信号、Li・・・過去状態信
号、Ii・・・割込み信号、Mi・・・割込み要否情報
。 なお、図中、同一または相当部分には同一符号を用いて
いる。 代理人  大  岩  増  a(ほか2名)第1図 第3図    第4図 第5図       第6図 第11図 第13図 第12図 第14図
1 and 2 are block diagrams showing one embodiment of the programmable controller according to the present invention, FIG. 3 is a flow diagram of the minimum event processing unit, and FIG. 4 shows the relationship between the minimum event processing unit group and the event correspondence table. 5 is a block diagram showing another embodiment, FIG. 6 is a block diagram showing the general configuration of the conventional example, and FIGS. 7 to 9 are diagrams of the relay circuit simulation method in the conventional example. Connection diagrams or flow diagrams; FIGS. 10 and 11 are diagrams and flow diagrams showing an example of a table using the table look-up method; FIGS. 12 through 14 are diagrams showing an example of a table and a pin board using the process step-by-step method. It is a diagram or flowchart showing a battle. ■...Arithmetic processing means, 12...Status signal storage means,
13...Event processing means, 141°15i...Logic circuit, 16...Memory, 17...Interrupt priority determination circuit, Pi...Current state signal, Li...Past state signal, Ii... ...Interrupt signal, Mi...Interrupt necessity information. In addition, in the figures, the same reference numerals are used for the same or corresponding parts. Agent Masu Oiwa (2 others) Figure 1 Figure 3 Figure 4 Figure 5 Figure 6 Figure 11 Figure 13 Figure 12 Figure 14

Claims (2)

【特許請求の範囲】[Claims] (1)制御対象の各種の状態を検出する状態検出手段か
ら出力される状態信号にもとづき、あらかじめ設定され
たプログラムを実行して上記制御対象を制御する制御信
号を出力する演算処理手段を備えたプログラマブルコン
トローラにおいて、上記検出手段から出力される状態信
号を記憶する状態信号記憶手段と、上記記憶手段に入力
される現在状態信号と上記記憶手段に記憶されている過
去状態信号とを比較し、この比較結果を処理して上記演
算処理手段に割込み信号を出力するイベント処理手段と
を備え、上記演算処理手段はこの割込み信号にもとづき
上記プログラムのイベント処理最小単位を選択して実行
するようにしたことを特徴とするプログラマブルコント
ローラ。
(1) Comprising arithmetic processing means for executing a preset program and outputting control signals for controlling the control object based on the status signals output from the state detection means for detecting various states of the control object. In the programmable controller, a state signal storage means for storing the state signal output from the detection means compares a current state signal inputted to the storage means with a past state signal stored in the storage means; and event processing means for processing the comparison result and outputting an interrupt signal to the arithmetic processing means, and the arithmetic processing means selects and executes the minimum event processing unit of the program based on the interrupt signal. A programmable controller featuring:
(2)イベント処理手段は、各状態信号毎に割込み要否
情報が記憶されたメモリと、現在状態信号と過去状態信
号とにもとづきイベントの発生を検出し、この検出され
たイベントと上記メモリに対応して記憶された割込み要
否情報とにもとづき割込み信号を発生する各状態信号毎
に設けられた論理回路と、上記各論理回路からの割込み
信号をあらかじめ設定された優先度に従い上記演算処理
手段に出力する割込み優先判定回路から成ることを特徴
とする特許請求の範囲第1項記載のプログラマブルコン
トローラ。
(2) The event processing means detects the occurrence of an event based on the memory in which interrupt necessity information is stored for each status signal, the current status signal, and the past status signal, and stores the detected event and the memory. a logic circuit provided for each status signal that generates an interrupt signal based on correspondingly stored interrupt necessity information; and the arithmetic processing means that processes the interrupt signal from each logic circuit according to a preset priority. 2. The programmable controller according to claim 1, further comprising an interrupt priority determination circuit that outputs an output to an interrupt priority determination circuit.
JP59232816A 1984-11-05 1984-11-05 Programmable controller Expired - Lifetime JPH0792690B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59232816A JPH0792690B2 (en) 1984-11-05 1984-11-05 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59232816A JPH0792690B2 (en) 1984-11-05 1984-11-05 Programmable controller

Publications (2)

Publication Number Publication Date
JPS61110205A true JPS61110205A (en) 1986-05-28
JPH0792690B2 JPH0792690B2 (en) 1995-10-09

Family

ID=16945221

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59232816A Expired - Lifetime JPH0792690B2 (en) 1984-11-05 1984-11-05 Programmable controller

Country Status (1)

Country Link
JP (1) JPH0792690B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55123736A (en) * 1979-03-16 1980-09-24 Hitachi Ltd Interrupt control system
JPS5739408A (en) * 1980-08-15 1982-03-04 Hitachi Ltd Programmable logic controller
JPS5914005A (en) * 1982-07-15 1984-01-24 Hitachi Ltd Sequence controlling system by microcomputer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55123736A (en) * 1979-03-16 1980-09-24 Hitachi Ltd Interrupt control system
JPS5739408A (en) * 1980-08-15 1982-03-04 Hitachi Ltd Programmable logic controller
JPS5914005A (en) * 1982-07-15 1984-01-24 Hitachi Ltd Sequence controlling system by microcomputer

Also Published As

Publication number Publication date
JPH0792690B2 (en) 1995-10-09

Similar Documents

Publication Publication Date Title
US6865636B1 (en) Multitasking processor system for monitoring interrupt events
JPS61110205A (en) Programmable controller
JPS59123933A (en) Address comparison system
JP2880658B2 (en) Runaway detection device for multitask program
JPS61813A (en) Deciding system for faulty area of sequence controller
JPS5914005A (en) Sequence controlling system by microcomputer
JPH03219360A (en) Multiprocessor control system
JPH05233479A (en) Panel monitor system
JPH0383139A (en) Fuzzy arithmetic processing device
JPH03296104A (en) Programmable controller system
JPH04105151A (en) Input/output controller
CA2619742A1 (en) An input/output control apparatus for performing high reliability computations
JPS605029B2 (en) Operation management device for multiple computer systems
JPH06337796A (en) Priority access controller
CN110360727A (en) Controller, method, apparatus, multimachine on-line equipment and the storage medium of unit
JP2685289B2 (en) Write enable signal check method
JP3471388B2 (en) Auxiliary processing unit
JPH04364527A (en) Arithmetic unit
JPS6162142A (en) I/o controller
JPH0683640A (en) Interruption response processing system
JPS61160144A (en) Emulation system
JPH03208132A (en) Single chip microcomputer
JPH05143741A (en) Frame buffer access device
JPS63118842A (en) Trouble detecting system for arithmetic unit
JPH0713879A (en) Bus connecting device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term