JPH0535469A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH0535469A
JPH0535469A JP3187390A JP18739091A JPH0535469A JP H0535469 A JPH0535469 A JP H0535469A JP 3187390 A JP3187390 A JP 3187390A JP 18739091 A JP18739091 A JP 18739091A JP H0535469 A JPH0535469 A JP H0535469A
Authority
JP
Japan
Prior art keywords
execution
sequence
instruction
processing
dummy
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
JP3187390A
Other languages
Japanese (ja)
Other versions
JP3074809B2 (en
Inventor
Sei Hasegawa
聖 長谷川
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP03187390A priority Critical patent/JP3074809B2/en
Publication of JPH0535469A publication Critical patent/JPH0535469A/en
Application granted granted Critical
Publication of JP3074809B2 publication Critical patent/JP3074809B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Executing Machine-Instructions (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To speed up the processing speed of the entire sequence processing. CONSTITUTION:The programmable controller is provided with an execution/ nonexecution discrimination circuit 5 discriminating whether a sequence instruction which receives the former processing result from a processor 1 for sequence instruction processing as a status S and is read out this time is to be executed or not in the processor 1 for sequence instruction processing, dummy instruction register 8 storing a dummy instruction DD, and a multiplexer 9 selecting a micro instruction from a microprogram memory 3 in the case an execution signal is outputted from the execution/nonexecution discrimination circuit 5 and selecting a dummy instruction DD of a dummy instruction register 8 in the case an nonexecution signal is outputted from the execution/nonexecution discrimination circuit 5 to be supplied to the processor 1 for sequence instruction processing. Thus, the amount of microprogram can be reduced.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、各種工場等の生産ライ
ンに採用されるシーケンス制御において、シーケンス・
プログラムを実行するプログラマブル・コントローラに
関し、詳しくは、シーケンス・プログラム内の各シーケ
ンス命令を実行するシーケンス命令処理用プロセッサの
処理速度を向上するように改善するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is applicable to sequence control in sequence control adopted in production lines of various factories.
More specifically, the present invention relates to a programmable controller for executing a program, which is improved so as to improve the processing speed of a processor for processing a sequence instruction that executes each sequence instruction in a sequence program.

【0002】[0002]

【従来の技術】シーケンス制御分野に採用されるプログ
ラマブル・コントローラの主要部について、最も一般的
な構成を第8図のブロック図に示し、その動作を図9の
フローチャートに示す。図8において、従来のプログラ
マブル・コントローラは、マイクロプロセッサ等から構
成されるシーケンス命令処理用プロセッサ1、各シーケ
ンス命令よりなるシーケンス・プログラムを格納するシ
ーケンス・プログラム・メモリ2、シーケンス命令に対
応するマイクロ命令を格納するマイクロプログラム・メ
モリ3、処理に用いられるデータを格納するとともにワ
ーク・エリアとしても使用される作業メモリ4から構成
され、シーケンス命令処理用プロセッサ1は、アドレス
・バス、データ・バス、コントロール・バスにより各々
のブロックと接続する。
2. Description of the Related Art A main part of a programmable controller adopted in the field of sequence control is shown in a block diagram of FIG. 8 and its operation is shown in a flowchart of FIG. In FIG. 8, a conventional programmable controller includes a sequence instruction processing processor 1 including a microprocessor and the like, a sequence program memory 2 for storing a sequence program including each sequence instruction, and a micro instruction corresponding to the sequence instruction. The sequence instruction processing processor 1 includes an address bus, a data bus, a control memory 3 and a working memory 4 that stores data used for processing and is also used as a work area.・ Connect to each block by bus.

【0003】このような装置の動作を図8のブロック図
とともに、図9のフローチャートを用いて説明する。シ
ーケンス命令処理用プロセッサ1は、アドレスAPを送
出し、シーケンス・プログラム・メモリ2からシーケン
ス命令DPをフェッチし、続いて、このシーケンス命令
DPに対応するアドレスAMをマイクロプログラム・メ
モリ3に送出してマイクロ命令DMをフェッチし、この
マイクロ命令DMを実行することによって当該シーケン
ス命令を処理する。この時、フェッチしたシーケンス命
令の種類によっては、前回のシーケンス処理結果(ビッ
ト演算処理結果)により、当該シーケンス命令の実行/
非実行を決定しなければならないものがあり、この実行
/非実行の判定は、シーケンス命令処理用プロセッサ1
内においてアキュムレータ等に格納したビット情報(ビ
ット演算処理結果)をチェックする等の方式で行われ
る。そして、非実行の判定をした場合は、次のシーケン
ス命令をフェッチするためのアドレスAPを送出する。
実行の判定をした場合は、このシーケンス命令DPに対
応したマイクロ命令DMをフェッチし、これを実行す
る。尚、1シーケンス命令につき、複数のマイクロ命令
が対応することもある。
The operation of such an apparatus will be described with reference to the block diagram of FIG. 8 and the flowchart of FIG. The sequence instruction processing processor 1 sends out the address AP, fetches the sequence instruction DP from the sequence program memory 2, and then sends out the address AM corresponding to the sequence instruction DP to the microprogram memory 3. The sequence instruction is processed by fetching the micro instruction DM and executing the micro instruction DM. At this time, depending on the type of the fetched sequence instruction, the execution / execution of the sequence instruction is executed depending on the previous sequence processing result (bit operation processing result).
There is something that must be determined to be non-execution, and this execution / non-execution determination is made by the sequence instruction processing processor
In such a method, the bit information (bit operation processing result) stored in the accumulator or the like is checked. Then, when the non-execution is determined, the address AP for fetching the next sequence instruction is transmitted.
When the execution instruction is determined, the microinstruction DM corresponding to this sequence instruction DP is fetched and executed. A plurality of micro instructions may correspond to one sequence instruction.

【0004】このように、シーケンス・プログラムを処
理するには、順次、シーケンス命令をフェッチし、実行
するか否かの判定をソフトウェア的に行い、更に、この
シーケンス命令に対応するマイクロ命令群をフェッチす
ることにより、行っている。従って、1個のシーケンス
命令を実行するためには、シーケンス命令処理用プロセ
ッサ1内にて数段階の処理を行わなけれはならず、シー
ケンス・プログラム全体の処理時間が長くなるという問
題があった。
As described above, in order to process a sequence program, a sequence instruction is sequentially fetched, a determination as to whether or not to execute is made by software, and a microinstruction group corresponding to this sequence instruction is fetched. By doing. Therefore, in order to execute one sequence instruction, it is necessary to perform several steps of processing in the sequence instruction processing processor 1, and there is a problem that the processing time of the entire sequence program becomes long.

【0005】この問題を解決したものとして、図10に
示すような構成のものがある。この例は、シーケンス・
プログラム・メモリ2から送出されたシーケンス命令D
Pを取り込むとともに、シーケンス命令処理用プロセッ
サ1における前回のシーケンス処理結果(ビット演算処
理)をステイタスSとして受ける実行/非実行判定回路
5を設けている。この実行/非実行判定回路5により、
今回フェッチしたシーケンス命令の実行/非実行をハー
ドウェア的に高速に判定することができる。更に、非実
行時にシーケンス命令処理用プロセッサ1から送出され
るマイクロプログラム・メモリ・アドレスARを非実行
時アドレス・レジスタ6に格納し、この非実行時マイク
ロプログラム・メモリ・アドレスARとシーケンス命令
処理用プロセッサ1からのアドレスAMをマルチプレク
サ7に与えるようにする。マルチプレクサ7には、実行
/非実行判定回路5から実行/非実行指示信号E/Dが
与えられ、実行判定時はシーケンス命令処理用プロセッ
サ1からのアドレスAMを選択し、非実行判定時は非実
行時アドレス・レジスタ6に格納されている非実行時マ
イクロプログラム・メモリ・アドレスARを選択し、マ
イクロプログラム・メモリ3に読み出しアドレスAIと
して与える。
As a solution to this problem, there is a structure as shown in FIG. This example uses the sequence
Sequence command D sent from the program memory 2
An execution / non-execution determination circuit 5 is provided which receives P and receives the previous sequence processing result (bit operation processing) in the sequence instruction processing processor 1 as status S. With this execution / non-execution determination circuit 5,
The execution / non-execution of the sequence instruction fetched this time can be determined at high speed by hardware. Further, the microprogram memory address AR sent from the sequence instruction processing processor 1 at the time of non-execution is stored in the non-execution time address register 6, and the non-execution time microprogram memory address AR and the sequence instruction processing are processed. The address AM from the processor 1 is applied to the multiplexer 7. The multiplexer 7 is given an execution / non-execution instruction signal E / D from the execution / non-execution determination circuit 5, selects the address AM from the sequence instruction processing processor 1 at the time of execution determination, and outputs the non-execution at the time of non-execution determination. The non-execution time microprogram memory address AR stored in the execution time address register 6 is selected and given to the microprogram memory 3 as the read address AI.

【0006】図11は、図10に示す装置例の動作を表
わすタイムチャートである。この図では、動作クロック
CPの1周期Tが1シーケンス命令を実行する時間に相
当し、はじめは、実行/非実行指示信号E/D“H”で
あり、マルチプレクサ6の切り換えによりマイクロプロ
グラム・メモリ3にシーケンス命令処理用プロセッサ1
からのアドレスAMが与えられている。そして、次の周
期のはじめの時間t1において、実行/非実行判定回路
5にて今回のシーケンス命令は非実行の命令であると判
定され、実行/非実行指示信号E/D“L”が出力され
ると、マルチプレクサ7は非実行時アドレス・レジスタ
6に格納されているアドレスARをマイクロプログラム
・メモリ3に与える。アドレスARはマイクロプログラ
ム・メモリ3内のの非実行を指示するマイクロ命令を指
定し、シーケンス命令処理用プロセッサ1は、この非実
行を指示するマイクロ命令DMを取り込み、次のシーケ
ンス命令をフェッチするように動作する。
FIG. 11 is a time chart showing the operation of the example of the apparatus shown in FIG. In this figure, one cycle T of the operation clock CP corresponds to the time for executing one sequence instruction, and the execution / non-execution instruction signal E / D is “H” at the beginning, and the microprogram memory is switched by switching the multiplexer 6. 3 is a processor for processing sequence instructions 1
The address AM from is given. Then, at the first time t1 of the next cycle, the execution / non-execution judging circuit 5 judges that this sequence instruction is a non-execution instruction, and outputs the execution / non-execution instruction signal E / D “L”. Then, the multiplexer 7 gives the address AR stored in the non-execution time address register 6 to the microprogram memory 3. The address AR designates a microinstruction instructing non-execution in the microprogram memory 3, and the sequence instruction processing processor 1 fetches the microinstruction DM instructing nonexecution and fetches the next sequence instruction. To work.

【0007】[0007]

【発明が解決しようとする課題】ところで、図11にお
いて、1シーケンス命令を実行する時間Tは、実行/非
実行判定回路5において実行/非実行の判定に要する時
間t1と、非実行を表わすマイクロ命令を読み出すメモ
リ・アクセス時間t2との和であるが、マイクロプログ
ラム・メモリ3に高速なメモリを用いてメモリ・アクセ
ス時間t2を短縮させても、実行/非実行判定時間t1
は一定でかつ常に必要な時間であり、この余分な時間t
1の積み重なりにより、シーケンス処理全体の処理速度
の向上が妨げられるという問題が発生していた。
By the way, in FIG. 11, the time T for executing one sequence instruction is the time t1 required for execution / non-execution determination in the execution / non-execution determination circuit 5 and the micro time indicating the non-execution. This is the sum of the memory access time t2 for reading an instruction, but even if the memory access time t2 is shortened by using a high-speed memory for the microprogram memory 3, the execution / non-execution determination time t1
Is a constant and always required time, and this extra time t
The stacking of 1 causes a problem that the improvement of the processing speed of the entire sequence processing is hindered.

【0008】本発明は、このような問題を解決すること
を課題とし、各々のシーケンス命令の処理速度を高速化
することにより、シーケンス処理全体の処理速度を高速
化することを目的とする。
An object of the present invention is to solve such a problem, and an object thereof is to speed up the processing speed of each sequence instruction, thereby speeding up the processing speed of the entire sequence processing.

【0009】[0009]

【課題を解決するための手段】以上の課題を解決した本
発明は、シーケンス命令処理用プロセッサと、シーケン
ス・プログラムが格納されているシーケンス・プログラ
ム・メモリと、前記シーケンス・プログラムを構成する
各シーケンス命令に対応するマイクロ命令を格納するマ
イクロプログラム・メモリとを有し、前記シーケンス命
令処理用プロセッサは前記シーケンス・プログラム・メ
モリから順次前記シーケンス命令を読み出すとともにこ
れに対応するマイクロ命令を前記マイクロプログラム・
メモリから読み出してシーケンス処理を実行するプログ
ラマブル・コントローラにおいて、前記シーケンス命令
処理用プロセッサから前回処理の結果をステイタスとし
て受け今回読み出された前記シーケンス命令が前記シー
ケンス命令処理用プロセッサにて実行するものであるか
非実行のものであるかを判定する実行/非実行判定回路
と、ダミー命令を格納するダミー命令レジスタと、前記
実行/非実行判定回路から実行信号が出力された場合は
前記マイクロプログラム・メモリからのマイクロ命令を
選択し前記実行/非実行判定回路から非実行信号が出力
された場合は前記ダミー命令レジスタのダミー命令を選
択して前記シーケンス命令処理用プロセッサに与えるマ
ルチプレクサとを備えることを特徴とするプログラマブ
ル・コントローラである。
According to the present invention, which has solved the above-mentioned problems, a sequence instruction processing processor, a sequence program memory in which a sequence program is stored, and each sequence constituting the sequence program are provided. A microprogram memory storing microinstructions corresponding to the instructions, the sequence instruction processing processor sequentially reads the sequence instructions from the sequence program memory, and outputs microinstructions corresponding to the sequence instructions to the microprogram.
In a programmable controller that reads out from a memory and executes sequence processing, the sequence instruction read out this time is received by the sequence instruction processing processor as status and executed by the sequence instruction processing processor. An execution / non-execution judging circuit for judging whether there is an execution or non-execution, a dummy instruction register for storing a dummy instruction, and the micro program if an execution signal is outputted from the execution / non-execution judging circuit. A multiplexer for selecting a microinstruction from a memory and, when a non-execution signal is output from the execution / non-execution determination circuit, selecting a dummy instruction in the dummy instruction register and giving it to the sequence instruction processing processor. Featured programmable controller A.

【0010】[0010]

【作用】本発明のプログラマブル・コントローラにおい
て、実行/非実行判定回路から実行信号が出力された場
合は、マイクロプログラム・メモリからのマイクロ命令
を選択し、実行/非実行判定回路から非実行信号が出力
された場合は、ダミー命令レジスタのダミー命令を選択
してシーケンス命令処理用プロセッサに与える。
In the programmable controller of the present invention, when the execution signal is output from the execution / non-execution determination circuit, the micro instruction from the microprogram memory is selected and the non-execution signal is output from the execution / non-execution determination circuit. When it is output, the dummy instruction in the dummy instruction register is selected and given to the sequence instruction processing processor.

【0011】[0011]

【実施例】次に、本発明を実施したプログラマブル・コ
ントローラの例を図面を用いて説明する。図1は本発明
のプログラマブル・コントローラのブロック図である。
この図で、図8、図10に示した従来のプログラマブル
・コントローラと符号が同じものは、その機能は同じで
ある。本発明のプログラマブル・コントローラの特徴
は、シーケンス命令の非実行を表わすマイクロ命令と同
等の意味を持つダミー命令DDを格納するダミー命令レ
ジスタ8と、このダミー命令DDと、マイクロプログラ
ム・メモリ3からのマイクロ命令DMとを実行/非実行
判定回路5からの実行/非実行指示信号E/Dにより選
択してその出力となる命令DIをシーケンス命令処理用
プロセッサ1に与えるマルチプレクサ9とを設けた点に
ある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an example of a programmable controller embodying the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of the programmable controller of the present invention.
In this figure, the same reference numerals as those of the conventional programmable controller shown in FIGS. 8 and 10 have the same functions. The programmable controller of the present invention is characterized in that a dummy instruction register 8 for storing a dummy instruction DD having the same meaning as a micro instruction representing non-execution of a sequence instruction, the dummy instruction DD, and the micro program memory 3 are used. A microinstruction DM and a multiplexer 9 for selecting an instruction DI as an output from the execution / non-execution determination signal E / D from the execution / non-execution determination circuit 5 and providing the instruction DI to the sequence instruction processing processor 1 are provided. is there.

【0012】このように構成した本発明のプログラマブ
ル・コントローラの動作を図1のブロック図とともに、
図2のフローチャートを用いて説明する。シーケンス命
令処理用プロセッサ1はシーケンス・プログラム・メモ
リ2からシーケンス命令DPをフェッチし、このシーケ
ンス命令DPは実行/非実行判定回路5に与えられる。
実行/非実行判定回路5は、与えられたシーケンス命令
DDとシーケンス命令処理用プロセッサ1からの前回処
理結果ステイタスSとを受けて今回のシーケンス命令D
Pの実行/非実行を判定する。実行と判定した場合は、
フェッチしたシーケンス命令DPに対応するアドレスA
Mがシーケンス命令処理用プロセッサ1からマイクロプ
ログラム・メモリ2に与えられる一方、実行/非実行判
定回路5から実行/非実行判定信号E/D“H”が出力
され、マルチプレクサ9はマイクロプログラム・メモリ
3のマイクロ命令DMを選択し、このマイクロ命令DM
を命令DIとしてシーケンス命令処理用プロセッサ1に
与える。以後は、従来と同様の処理が進行する。非実行
と判定した場合は、実行/非実行判定信号E/D“L”
が出力されてマルチプレクサ9はダミー命令レジスタ8
の出力DDを選択し、このダミー命令DDを命令DIと
してシーケンス命令処理用プロセッサ1に与える。シー
ケンス命令処理用プロセッサ1は、このダミー命令DD
を取り込むと、シーケンス命令非実行の処理を行うとと
もに、次のシーケンス命令をフェッチするように動作す
る。
The operation of the programmable controller of the present invention thus constructed will be described with reference to the block diagram of FIG.
This will be described with reference to the flowchart of FIG. The sequence instruction processing processor 1 fetches the sequence instruction DP from the sequence program memory 2, and the sequence instruction DP is given to the execution / non-execution determination circuit 5.
The execution / non-execution determination circuit 5 receives the given sequence command DD and the previous processing result status S from the sequence command processing processor 1 and receives the current sequence command D.
The execution / non-execution of P is determined. If it is determined to execute,
Address A corresponding to the fetched sequence instruction DP
While M is given from the sequence instruction processing processor 1 to the microprogram memory 2, the execution / non-execution determination circuit 5 outputs the execution / non-execution determination signal E / D "H", and the multiplexer 9 is the micro program memory. Select the microinstruction DM of 3 and select this microinstruction DM
Is given to the sequence instruction processing processor 1 as an instruction DI. After that, the same processing as the conventional one proceeds. If it is determined to be non-execution, execution / non-execution determination signal E / D “L”
Is output and the multiplexer 9 outputs the dummy instruction register 8
Output DD of the above is selected, and this dummy instruction DD is given to the sequence instruction processing processor 1 as the instruction DI. The sequence instruction processing processor 1 uses the dummy instruction DD
, The sequence instruction is not executed and the next sequence instruction is fetched.

【0013】図3は、以上のような本発明のプログラマ
ブル・コントローラの具体的な動作を表わすタイムチャ
ートである。はじめの周期において、フェッチしたシー
ケンス命令を実行する場合、実行/非実行判定回路5で
実行と判定され、実行/非実行指示信号E/D“H”が
維持され、マルチプレクサ9はマイクロプログラム・メ
モリ3の出力DM側を選択する。一方、このシーケンス
命令に対応するマイクロ命令を指定するアドレスAM1
がマイクロプログラム・メモリ2に与えられており、こ
れに対応するマイクロ命令DM1がマルチプレクサ9を
介してシーケンス命令処理用プロセッサ1に与えられ
る。次の周期において、フェッチされたシーケンス命令
について、対応するアドレスAM2がマイクロプログラ
ム・メモリ3に送出される一方、実行/非実行判定回路
5の判定結果、非実行と判定されると、実行/非実行指
示信号E/Dは“L”となり、マルチプレクサ9はダミ
ー命令レジスタ8の出力DDを出力とするように切り換
える。これにより、シーケンス命令処理用プロセッサ1
は、マイクロプログラム・メモリ3に対するアクセスと
は関係なく、直ちにダミー命令DDを取り込み、対応す
る処理を行う。次に、フェッチされたシーケンス命令が
実行と判定された場合は、実行/非実行指示信号E/D
“H”となり、マルチプレクサ9によりシーケンス命令
処理用プロセッサ1から送出されるアドレスAM3に対
応するマイクロ命令DM3が選択される。図3に示すよ
うに、本発明のプログラマブル・コントローラにあって
は、1シーケンス命令が実行される周期T´は、実行/
非実行判定時間t3と、t3経過後、ダミー命令DDの
取り込みに要する時間またはアドレスAMに対応するデ
ータ(マイクロ命令DM)を取り込みに要する時間に対
応する時間t4を考慮すればよいが、実際には、実行/
非実行判定時間t3はシーケンス命令処理用プロセッサ
1のマイクロプログラム・メモリ3に対するアクセス時
間T´に含ませてよい。即ち、1シーケンス命令が実行
される周期T´は、マイクプログラム・メモリ3に対す
るアクセス時間のみに依存する時間である。従って、本
発明のプログラマブル・コントローラの1周期T´は、
図11に示した従来の装置における1周期Tより短くて
すむ。
FIG. 3 is a time chart showing a specific operation of the programmable controller of the present invention as described above. When the fetched sequence instruction is executed in the first cycle, the execution / non-execution judging circuit 5 judges that the instruction is executed, the execution / non-execution instruction signal E / D “H” is maintained, and the multiplexer 9 is set in the microprogram memory. 3 output DM side is selected. On the other hand, the address AM1 designating the microinstruction corresponding to this sequence instruction
Are given to the microprogram memory 2, and the corresponding microinstruction DM1 is given to the sequence instruction processing processor 1 via the multiplexer 9. In the next cycle, with respect to the fetched sequence instruction, the corresponding address AM2 is sent to the microprogram memory 3, while the execution / non-execution judging circuit 5 judges as non-execution, execution / non-execution. The execution instruction signal E / D becomes "L", and the multiplexer 9 switches to output the output DD of the dummy instruction register 8. As a result, the sequence instruction processing processor 1
Irrespective of the access to the microprogram memory 3, the dummy instruction DD is immediately fetched and the corresponding processing is performed. Next, when the fetched sequence instruction is determined to be executed, the execution / non-execution instruction signal E / D
It becomes "H", and the multiplexer 9 selects the microinstruction DM3 corresponding to the address AM3 sent from the sequence instruction processing processor 1. As shown in FIG. 3, in the programmable controller of the present invention, the cycle T'where one sequence instruction is executed
The non-execution determination time t3 and the time t4 corresponding to the time required to fetch the dummy instruction DD or the time required to fetch the data (microinstruction DM) corresponding to the address AM after the elapse of t3 may be considered. Run /
The non-execution determination time t3 may be included in the access time T ′ for the microprogram memory 3 of the sequence instruction processing processor 1. That is, the cycle T ′ in which one sequence command is executed is a time that depends only on the access time to the microphone program memory 3. Therefore, one period T'of the programmable controller of the present invention is
It can be shorter than one cycle T in the conventional device shown in FIG.

【0014】次に、実際のシーケンス・プログラムを実
行する際の概要を説明する本発明が対象とするシーケン
ス命令は、図4に示すようなラダー・シーケンス・プロ
グラムであり、これをニーモニック表現したものを図5
に示す。例えば、図4の第1行のプログラム命令は、接
点X00501がオン“1”かつ接点X00316がオ
ン“1”で命令“MOV D001 D008”を実行
するものであり、第2行以下も同様である。図6は、接
点X00501オン“1”、接点X00316オン
“1”であり、この状態“1”をアキュムレータACC
に格納して処理を続行する場合である。アキュムレータ
ACC“1”は、シーケンス命令処理用プロセッサ1に
おけるステイタスSに相当し、マルチプレクサ9はマイ
クロプログラム・メモリ3の出力選択を維持する場合で
ある。図7は、接点X00501オン“1”、接点X0
0316オフ“0”であり、アキュムレータACCの内
容が“1”から“0”に切り換わった場合を示し、これ
により、マルチプレクサ9はダミー命令レジスタ8の出
力(ダミー命令DD)を選択するように切り換わる。こ
のように、シーケンス命令実行に際しても外観上、従来
と全く同様に処理が進行し、しかも高速処理を実現する
ことができる。
Next, a sequence instruction targeted by the present invention for explaining an outline when an actual sequence program is executed is a ladder sequence program as shown in FIG. 4, which is a mnemonic expression of the ladder sequence program. Figure 5
Shown in. For example, the program instruction on the first line in FIG. 4 is to execute the instruction “MOV D001 D008” when the contact X00501 is on “1” and the contact X00316 is on “1”, and the same applies to the second and subsequent lines. .. FIG. 6 shows a contact X00501 on "1" and a contact X00316 on "1". This state "1" is stored in the accumulator ACC.
This is a case where the data is stored in and processing is continued. The accumulator ACC "1" corresponds to the status S in the sequence instruction processing processor 1, and the multiplexer 9 maintains the output selection of the microprogram memory 3. FIG. 7 shows a contact X00501 on “1”, a contact X0.
0316 is off "0", and shows the case where the content of the accumulator ACC is switched from "1" to "0", whereby the multiplexer 9 selects the output of the dummy instruction register 8 (dummy instruction DD). Switch. In this way, when the sequence command is executed, the external appearance is the same as the conventional one, and the high-speed processing can be realized.

【0015】[0015]

【発明の効果】以上述べたように、本発明のプログラマ
ブル・コントローラによれば、フェッチしたシーケンス
命令の実行/非実行の判定をハードウェアで行うため、
この判定処理をマイクロプログラムでソフトウェア的に
処理する方式に比較して短縮でき、シーケンス・プログ
ラムの処理の全体時間を大幅に短縮することができる。
更に、マイクロプログラムでの判定処理を省略したの
で、マイクロプログラムの量も低減することができると
いう効果を奏する。
As described above, according to the programmable controller of the present invention, execution / non-execution of the fetched sequence instruction is determined by hardware.
This determination processing can be shortened as compared with the method of processing by software by a micro program, and the entire processing time of the sequence program can be significantly shortened.
Furthermore, since the determination process by the microprogram is omitted, the amount of the microprogram can be reduced.

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

【図1】本発明を実施したプログラマブル・コントロー
ラの構成ブロック図である。
FIG. 1 is a configuration block diagram of a programmable controller embodying the present invention.

【図2】本発明のプログラマブル・コントローラの動作
を表わすフローチャートである。
FIG. 2 is a flowchart showing the operation of the programmable controller of the present invention.

【図3】本発明のプログラマブル・コントローラの動作
を表わすタイムチャートである。
FIG. 3 is a time chart showing the operation of the programmable controller of the present invention.

【図4】本発明のプログラマブル・コントローラが対象
とするラダー・プログラムの例である。
FIG. 4 is an example of a ladder program targeted by the programmable controller of the present invention.

【図5】図4に示したラダー・プログラムをニーモニッ
ク表現した例である。
FIG. 5 is an example of a mnemonic expression of the ladder program shown in FIG.

【図6】本発明のプログラマブル・コントローラにおい
て図5の命令列を実行した場合を表わす図である。
FIG. 6 is a diagram showing a case where the instruction sequence of FIG. 5 is executed in the programmable controller of the present invention.

【図7】本発明のプログラマブル・コントローラにおい
て図5の命令列を実行した場合を表わす図である。
FIG. 7 is a diagram showing a case where the instruction sequence of FIG. 5 is executed in the programmable controller of the present invention.

【図8】従来のプログラマブル・コントローラを表わす
図である。
FIG. 8 is a diagram showing a conventional programmable controller.

【図9】図8に示した従来のプログラマブル・コントロ
ーラの動作を表わすフローチャートである。
9 is a flowchart showing an operation of the conventional programmable controller shown in FIG.

【図10】従来のプログラマブル・コントローラを表わ
す図である。
FIG. 10 is a diagram showing a conventional programmable controller.

【図11】従来のプログラマブル・コントローラの動作
を表わすタイムチャートである。
FIG. 11 is a time chart showing the operation of a conventional programmable controller.

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

1 シーケンス命令処理用プロセッサ 2 シーケンス・プログラム・メモリ 3 マイクロプログラム・メモリ 4 作業メモリ 5 実行/非実行判定回路 6 非実行時アドレス・レジスタ 7,9 マルチプレクサ 8 ダミー命令レジスタ 1 processor for sequence instruction processing 2 sequence program memory 3 micro program memory 4 working memory 5 execution / non-execution determination circuit 6 non-execution time address register 7, 9 multiplexer 8 dummy instruction register

Claims (1)

【特許請求の範囲】 【請求項1】 シーケンス命令処理用プロセッサと、シ
ーケンス・プログラムが格納されているシーケンス・プ
ログラム・メモリと、前記シーケンス・プログラムを構
成する各シーケンス命令に対応するマイクロ命令を格納
するマイクロプログラム・メモリとを有し、前記シーケ
ンス命令処理用プロセッサは前記シーケンス・プログラ
ム・メモリから順次前記シーケンス命令を読み出すとと
もにこれに対応するマイクロ命令を前記マイクロプログ
ラム・メモリから読み出してシーケンス処理を実行する
プログラマブル・コントローラにおいて、前記シーケン
ス命令処理用プロセッサから前回処理の結果をステイタ
スとして受け今回読み出された前記シーケンス命令が前
記シーケンス命令処理用プロセッサにて実行するもので
あるか非実行のものであるかを判定する実行/非実行判
定回路と、ダミー命令を格納するダミー命令レジスタ
と、前記実行/非実行判定回路から実行信号が出力され
た場合は前記マイクロプログラム・メモリからのマイク
ロ命令を選択し前記実行/非実行判定回路から非実行信
号が出力された場合は前記ダミー命令レジスタのダミー
命令を選択して前記シーケンス命令処理用プロセッサに
与えるマルチプレクサとを備えることを特徴とするプロ
グラマブル・コントローラ。
Claim: What is claimed is: 1. A sequence instruction processing processor, a sequence program memory in which a sequence program is stored, and a micro instruction corresponding to each sequence instruction forming the sequence program. The sequence instruction processing processor sequentially reads the sequence instructions from the sequence program memory, reads the corresponding micro instructions from the micro program memory, and executes the sequence processing. A programmable controller that receives the result of previous processing from the sequence instruction processing processor as status and executes the sequence instruction read this time in the sequence instruction processing processor. An execution / non-execution judging circuit for judging whether there is an execution or non-execution, a dummy instruction register for storing a dummy instruction, and the micro program if an execution signal is outputted from the execution / non-execution judging circuit. A multiplexer for selecting a microinstruction from a memory and, when a non-execution signal is output from the execution / non-execution determination circuit, selecting a dummy instruction in the dummy instruction register and giving it to the sequence instruction processing processor. Characteristic programmable controller.
JP03187390A 1991-07-26 1991-07-26 Programmable controller Expired - Fee Related JP3074809B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03187390A JP3074809B2 (en) 1991-07-26 1991-07-26 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03187390A JP3074809B2 (en) 1991-07-26 1991-07-26 Programmable controller

Publications (2)

Publication Number Publication Date
JPH0535469A true JPH0535469A (en) 1993-02-12
JP3074809B2 JP3074809B2 (en) 2000-08-07

Family

ID=16205190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03187390A Expired - Fee Related JP3074809B2 (en) 1991-07-26 1991-07-26 Programmable controller

Country Status (1)

Country Link
JP (1) JP3074809B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272453B2 (en) 2004-11-30 2007-09-18 Air Products And Chemicals, Inc. Method and apparatus for utilizing a sequence interpreter approach to control logic of a programmable logic controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272453B2 (en) 2004-11-30 2007-09-18 Air Products And Chemicals, Inc. Method and apparatus for utilizing a sequence interpreter approach to control logic of a programmable logic controller

Also Published As

Publication number Publication date
JP3074809B2 (en) 2000-08-07

Similar Documents

Publication Publication Date Title
JPS6239780B2 (en)
JP3074809B2 (en) Programmable controller
JP2752076B2 (en) Programmable controller
US5479620A (en) Control unit modifying micro instructions for one cycle execution
JPH05189232A (en) Automated apparatus and operating method thereof
JPH03150633A (en) Instruction decoder
JP2529429B2 (en) Programmable controller
JP4813823B2 (en) Test system and test method
JP4037941B2 (en) Control device
JPH04251331A (en) Information processor
KR940000220B1 (en) Command word process system of program logic controller
JPH0454531A (en) Program reading circuit
JP2532072Y2 (en) Pattern generator
JP2845780B2 (en) Data transfer control circuit
JP2001084139A (en) Arithmetic processor and arithmetic processing method
JPS6367604A (en) Process signal converter
JPH0512107A (en) Program execution system
JPH05298144A (en) Data trace system
JPH06230958A (en) Processor
JPH0744382A (en) Digital signal processor accelerating change/recovery procedure for sub routine processing
JPH0719193B2 (en) Control command sequence conversion method for drawing graphics
JPH08297583A (en) Processor and method for interruption processing
JPS6227830A (en) Interruption control system
JPS6254340A (en) Information processor
JPH01175633A (en) Data processor

Legal Events

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

Free format text: PAYMENT UNTIL: 20080609

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090609

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100609

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees