JP2529429B2 - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2529429B2
JP2529429B2 JP1334839A JP33483989A JP2529429B2 JP 2529429 B2 JP2529429 B2 JP 2529429B2 JP 1334839 A JP1334839 A JP 1334839A JP 33483989 A JP33483989 A JP 33483989A JP 2529429 B2 JP2529429 B2 JP 2529429B2
Authority
JP
Japan
Prior art keywords
instruction
word
operation instruction
processor
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1334839A
Other languages
Japanese (ja)
Other versions
JPH03196204A (en
Inventor
光明 小林
弘昌 山岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1334839A priority Critical patent/JP2529429B2/en
Publication of JPH03196204A publication Critical patent/JPH03196204A/en
Application granted granted Critical
Publication of JP2529429B2 publication Critical patent/JP2529429B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラマブルコントローラに係り、特に、
ビット演算命令中にワード演算命令が混在する命令を高
速に実行するに好適なプログラマブルコントローラに関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller, and more particularly,
The present invention relates to a programmable controller suitable for high-speed execution of instructions in which word operation instructions are mixed in bit operation instructions.

〔従来の技術〕[Conventional technology]

プログラマブルコントローラが対象とする被制御対象
も近年は複雑になり、シーケンスコントロールの中にPI
D制御を行なうことが当たり前になってきている。この
ため、プログラマブルコントローラの制御命令プログラ
ムは、シーケンス命令であるラダー命令(ビット命令)
と数値演算命令(ワード演算命令)とが混在するように
なっている。
The controlled object targeted by the programmable controller has become complicated in recent years, and the PI
D control is becoming commonplace. Therefore, the control instruction program of the programmable controller is a ladder instruction (bit instruction) that is a sequence instruction.
And numerical operation instructions (word operation instructions) are mixed.

このようなビット演算命令とワード演算命令が混在す
る命令を実行する従来のプログラマブルコントローラ
は、例えば特開昭56−105505号公報記載の様に、シーケ
ンス命令(ビット演算命令)をハードウェアで処理し数
値演算(ワード演算命令)を専用回路によるマイクロプ
ログラムで処理する構成にしたり、あるいは、ビット演
算命令を専用に処理するプロセッサを設けると共にプロ
グラマブルコントローラ全体を統括する汎用プロセッサ
にワード演算命令も実行させる構成にしている。
A conventional programmable controller that executes such an instruction in which bit operation instructions and word operation instructions coexist is such that a sequence instruction (bit operation instruction) is processed by hardware as described in, for example, Japanese Patent Laid-Open No. 56-105505. Arrangement for processing numerical operations (word operation instructions) by a microprogram by a dedicated circuit, or for providing a processor for exclusively processing bit operation instructions and for allowing a general-purpose processor that controls the entire programmable controller to execute word operation instructions I have to.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

ビット演算命令中にワード演算命令が混在する命令を
実行する場合、処理に時間がかかるという問題がある。
この原因の一つは、命令中のどれがビット演算命令であ
りどれがワード演算命令であるかを判別するのに時間が
かかることにある。更に別の原因として、プログラマブ
ルコントローラ全体の動作を統括する汎用プロセッサが
ワード演算命令を認識してこれを実行する場合に、この
ワード演算命令をプロセッサが実行可能なマシン言語
(オブジェクトコード)翻訳しなければならず、この翻
訳に時間がかかることにある。上述した従来技術はこれ
らを解決するものではなく、被制御対象が複雑で大規模
になるほど制御処理に時間がかかり、実用的でなくなっ
てきている。また、シーケンス命令をハードウェアで行
なう構成にすると、ハード量が大きくなり、これも実用
的でない。
When executing an instruction in which word operation instructions are mixed in bit operation instructions, there is a problem in that processing takes time.
One of the causes is that it takes time to determine which of the instructions is a bit operation instruction and which is a word operation instruction. As another cause, when a general-purpose processor that controls the operation of the entire programmable controller recognizes a word operation instruction and executes the word operation instruction, the word operation instruction must be translated into a machine language (object code) executable by the processor. This must be done, and this translation will take time. The above-mentioned conventional techniques do not solve these problems, and the more complicated and large-scale the controlled object, the longer the control process becomes, which is becoming impractical. Further, if the sequence instruction is configured by hardware, the amount of hardware becomes large, which is also not practical.

本発明の目的は、ビット演算命令中にワード演算命令
が混在する命令を高速に処理することのできるプログラ
マブルコントローラを提供することにある。
An object of the present invention is to provide a programmable controller that can process an instruction in which word operation instructions are mixed in bit operation instructions at high speed.

〔課題を解決するための手段〕[Means for solving the problem]

上記目的は、ビット演算命令中にワード演算命令が混
在するシーケンスプログラムの各命令を実行するプログ
ラマブルコントローラにおいて、前記シーケンスプログ
ラム中の各ワード演算命令に対応するオブジェクトコー
ドを格納した第1メモリと、前記シーケンスプログラム
中の各命令が夫々ビット演算命令であるかワード演算命
令であるかを示す識別情報及びワード演算命令の場合に
該ワード演算命令に該当するオブジェクトコードの格納
先を示す前記第1メモリ中のアドレスを格納した第2メ
モリと、該第2メモリの各命令をサイクリックに読み出
し前記識別情報がビット演算命令を示すときは該ビット
演算命令を実行しワード演算命令であるときは所要命令
を出力するビット演算命令処理専用プロセッサと、該ビ
ット演算命令処理専用プロセッサが前記所要命令を出力
したとき当該ワード演算命令に対応する前記アドレスに
基づいて前記第1メモリから該当オブジェクトコードを
読み出し該オブジェクトコードを格納するレジスタと、
該レジスタをサーチしオブジェクトコードが格納された
とき該オブジェクトコードを読み込んで実行するワード
演算命令処理専用プロセッサとを備えることで、達成さ
れる。
In the programmable controller that executes each instruction of a sequence program in which word operation instructions are mixed in bit operation instructions, a first memory storing an object code corresponding to each word operation instruction in the sequence program; In the first memory, the identification information indicating whether each instruction in the sequence program is a bit operation instruction or a word operation instruction and the storage location of the object code corresponding to the word operation instruction in the case of the word operation instruction And a second memory in which the address of the second memory is stored, and each instruction of the second memory is cyclically read, and when the identification information indicates a bit operation instruction, the bit operation instruction is executed, and when it is a word operation instruction, the required instruction is executed. A dedicated processor for bit operation instruction processing to be output and a dedicated processor for bit operation instruction processing A register in which the processor stores the object code reads the corresponding object code from said first memory based on the address corresponding to the word operation instruction when outputting the required instruction,
This is achieved by providing a processor dedicated to word operation instruction processing which searches the register and reads and executes the object code when the object code is stored.

〔作用〕[Action]

シーケンスプログラムの各命令を第2メモリに格納す
るときに各命令がビット演算命令であるかワード演算命
令であるかを示す識別情報を付加するため、両命令の判
別を迅速に行うことが可能となる。しかも、各ワード演
算命令に対応するオブジェクトコードを第1メモリに格
納しておき、実行対象命令がワード演算命令であるとビ
ット演算命令処理専用プロセッサが判別したとき直ちに
該当オブジェクトコードが第1メモリから読み出されワ
ード演算命令処理専用プロセッサに渡されるため、高速
にワード演算が可能となる。更にまた、ワード演算命令
処理専用プロセッサは、ビット演算命令処理専用プロセ
ッサからのワード演算処理指令を受けることなく、自ら
レジスタをサーチし該レジスタにオブジェクトコードが
格納されたとき当該オブジェクトコードを読み込んで実
行するため、ビット演算命令処理プロセッサとの間での
同期を意識することなく同期をとってワード演算命令が
実行できる。
When each instruction of the sequence program is stored in the second memory, since identification information indicating whether the instruction is a bit operation instruction or a word operation instruction is added, it is possible to quickly determine both instructions. Become. Moreover, the object code corresponding to each word operation instruction is stored in the first memory, and when the bit operation instruction processing dedicated processor determines that the instruction to be executed is the word operation instruction, the corresponding object code is immediately output from the first memory. Since it is read and passed to the processor dedicated to word operation instruction processing, word operation can be performed at high speed. Furthermore, the word operation instruction processing dedicated processor searches the register itself without receiving the word operation processing instruction from the bit operation instruction processing dedicated processor, and reads and executes the object code when the object code is stored in the register. Therefore, the word operation instruction can be executed in synchronization without being aware of the synchronization with the bit operation instruction processing processor.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を参照して説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第2図は、本発明の一実施例に係るプログラマブルコ
ントローラの全体構成図である。このプログラマブルコ
ントローラ1は、中央処理装置(CPU)2と、シーケン
ス演算処理装置(SPU)3と、プロセス入力格納メモリ
(PIOメモリ)4とを備えてなり、プロセス入出力装置
(PIO)5を介してモータ6,スイッチ7,センサ8等と接
続されている。
FIG. 2 is an overall configuration diagram of a programmable controller according to an embodiment of the present invention. The programmable controller 1 comprises a central processing unit (CPU) 2, a sequence processing unit (SPU) 3, and a process input storage memory (PIO memory) 4, and a process input / output unit (PIO) 5 is used. Connected to the motor 6, the switch 7, the sensor 8 and the like.

中央処理装置2は、主としてプログラマブルコントロ
ーラ1全体を統括するものであり、各構成装置3,4等の
管理や通信プログラムの実行をしたり、機械制御プログ
ラム以外のワード演算処理を実行する。シーケンス演算
処理装置3は、ラダー言語等の機械制御プログラムを主
に実行するものである。PIOメモリ4は、シーケンス演
算処理装置3の演算結果であるプロセス命令値を格納し
たり、シーケンス演算処理装置3の演算に必要なプロセ
ス側6,7,8のオン・オフ状態を周期的に読み取ったデー
タを格納するものである。つまり、このプログラマブル
コントローラ1は、プロセスデータとシーケンス演算処
理装置3内に予め格納されている制御プログラムとによ
り演算を実行し、モータ6のオンオフ制御を行なう。
The central processing unit 2 mainly controls the entire programmable controller 1, manages the respective constituent devices 3 and 4 and executes a communication program, and executes a word operation process other than the machine control program. The sequence operation processing device 3 mainly executes a machine control program such as a ladder language. The PIO memory 4 stores the process command value which is the operation result of the sequence operation processing device 3 and periodically reads the on / off state of the process side 6, 7, 8 necessary for the operation of the sequence operation processing device 3. Stored data. In other words, the programmable controller 1 executes the calculation by the process data and the control program stored in the sequence calculation processing device 3 in advance, and controls the ON / OFF of the motor 6.

第1図は、シーケンス演算処理装置3の詳細構成図で
ある。シーケンス演算処理装置3は、ビット演算命令と
ワード演算命令が混在するシーケンスプログラムを格納
したメモリ(以下、SEQメモリという。)9と、各ワー
ド演算命令に対応するマシン語であるオブジェクトコー
ドを格納したメモリ(以下、OBJメモリという。)10
と、専らビット演算命令を処理するビット演算処理プロ
セッサ12と、専ら機械制御プログラム(シーケンスプロ
グラム)のワード演算命令を処理するワード演算処理プ
ロセッサ13と、OBJメモリ10から取り出したオブジエク
トコードを一時格納しこれをワード演算処理プロセッサ
13に渡すワード命令レジスタ11とを備える。
FIG. 1 is a detailed configuration diagram of the sequence calculation processing device 3. The sequence operation processing device 3 stores a memory (hereinafter referred to as SEQ memory) 9 in which a sequence program in which bit operation instructions and word operation instructions are mixed is stored, and an object code which is a machine language corresponding to each word operation instruction. Memory (hereinafter referred to as OBJ memory) 10
And a bit operation processor 12 exclusively processing bit operation instructions, a word operation processor 13 exclusively processing word operation instructions of a machine control program (sequence program), and an object code fetched from the OBJ memory 10 temporarily stored. This is a word processor
And a word instruction register 11 to be passed to.

第3図は、ワード命令レジスタ11の構成とシーケンス
演算処理装置3内での信号経路を説明する図である。本
実施例では、ワード命令レジスタ11は、アドレス加算器
14と、オブジェクトバッファ15で構成してある。尚、第
3図に示す各信号9a,12a,13a,14aについては後述する。
FIG. 3 is a diagram for explaining the configuration of the word instruction register 11 and the signal path in the sequence operation processing device 3. In this embodiment, the word instruction register 11 is an address adder.
It is composed of 14 and an object buffer 15. The signals 9a, 12a, 13a, 14a shown in FIG. 3 will be described later.

第4図は、SEQメモリ9に格納するシーケンスプログ
ラムの各命令の格納フォーマットを示す図である。この
図に示す様に、命令がビット演算命令であるかワード演
算命令であるかを示す演算種別コードB/Wと、命令の種
類を表す命令コードINSTと、パラメータPARAで、各命令
を構成する。
FIG. 4 is a diagram showing a storage format of each instruction of the sequence program stored in the SEQ memory 9. As shown in this figure, each instruction is composed of an operation type code B / W indicating whether the instruction is a bit operation instruction or a word operation instruction, an instruction code INST indicating the instruction type, and a parameter PARA. .

第5図は、ビット演算命令中にワード演算命令が混在
したラダー言語記述16のプログラム説明図である。接点
シンボルやコイルシンボルはビット演算命令であり、SU
Bシンボル17がワード演算命令である。第5図に示すX00
0,X001,R001,R002,Y000等はPIOメモリ4のビットアドレ
スであり、RW100,RW200はPIOメモリ4のワードアドレス
である。斯かるプログラムのビット演算命令を第4図の
フォーマットでSEQメモリ9に格納し、ワード演算命令S
UBについては、当該ワード演算命令の加算値メ50とパラ
メータ(RW100,H100,RW200)が第4図のフォーマットで
SEQメモリに格納される。
FIG. 5 is a program explanatory diagram of the ladder language description 16 in which word operation instructions are mixed in bit operation instructions. Contact symbols and coil symbols are bit operation instructions, and SU
B symbol 17 is a word operation instruction. X00 shown in Fig. 5
0, X001, R001, R002, Y000, etc. are bit addresses of the PIO memory 4, and RW100, RW200 are word addresses of the PIO memory 4. The bit operation instruction of such a program is stored in the SEQ memory 9 in the format shown in FIG.
For UB, the added value 50 and parameters (RW100, H100, RW200) of the word operation instruction are in the format shown in Fig. 4.
Stored in SEQ memory.

OBJメモリ10には、プログラム中の各ワード演算命令
をマシン語つまりオブジェクトコードで登録してあり、
第5図に示すワード演算命令SUB17のオブジェクトコー
ドは、OBJメモリ10の先頭番地「メ50」のエリアに格納
してある。
In the OBJ memory 10, each word operation instruction in the program is registered in machine language, that is, object code,
The object code of the word operation instruction SUB17 shown in FIG. 5 is stored in the area of the head address "ME50" of the OBJ memory 10.

上付した構成のプログラマブルコントローラが第5図
のプログラムを実行する場合、ビット演算処理プロセッ
サが、SEQメモリ9から命令を順番に読み出し演算して
いる。ビット演算命令を順次読み出しそれに対応した制
御を進めている途中でワード演算命令に当たった場合、
ビット演算処理プロセッサ12はそれがワード演算命令で
あることを、前記の演算識別コードB/Wで認識する。
When the programmable controller having the above-mentioned configuration executes the program shown in FIG. 5, the bit operation processor sequentially reads out the instructions from the SEQ memory 9 and performs the operation. If a word operation instruction is encountered while reading the bit operation instructions sequentially and proceeding with the corresponding control,
The bit operation processor 12 recognizes that it is a word operation instruction by the operation identification code B / W.

ワード演算命令であることを認識したビット演算処理
プロセッサ12は、第3図のアドレス加算許可信号12aを
アドレス加算器14に出力する。このアドレス加算器14に
は、ビット演算処理プロセッサ12がSEQメモリ9から読
み出した命令コード9aとワード演算処理プロセッサ13か
らのアドレス信号13aとが入力されており、アドレス加
算許可信号12aにより両信号9a,13aが加算される。これ
により、OBJメモリ10の該当オブジェクトコードが格納
させている実アドレスが求まる。
Recognizing that it is a word operation instruction, the bit operation processor 12 outputs the address addition permission signal 12a of FIG. 3 to the address adder 14. An instruction code 9a read from the SEQ memory 9 by the bit arithmetic processor 12 and an address signal 13a from the word arithmetic processor 13 are input to the address adder 14, and both signals 9a are generated by the address addition permission signal 12a. , 13a is added. As a result, the real address in which the corresponding object code in the OBJ memory 10 is stored can be obtained.

第6図は、ビット演算命令実行中のOBJメモリ10とワ
ード命令レジスタ11の関係を示す図である。ビット演算
命令実行中は、アドレス加算許可信号12aは出力されな
いので、上述した信号9aと信号13aとの加算はされず、
ワード演算プロセッサ13のアドレス出力13aと、実アド
レス14aとは同一アドレスである。このため、第6図に
示す様に、OBJメモリ10の最初のエリアがワード命令レ
ジスタ11の写像となっている。OBJメモリ10の最初のエ
リアにはジャンプ命令が与えられており、飛び先アドレ
スをワード命令レジスタ11の先頭アドレスにすると、ワ
ード演算処理プロセッサ13は該レジスタ11の先頭をサー
チすることで、次の命令がワード演算命令のとき該ワー
ド演算命令を次に述べる様に即実行することが可能とな
る。尚、ジャンプ命令ではなく、OBJメモリのアドレス
を切替えて該当オブジェクトコードをレジスタ11に転送
することでもよいことはいうまでもない。
FIG. 6 is a diagram showing the relationship between the OBJ memory 10 and the word instruction register 11 during execution of the bit operation instruction. Since the address addition permission signal 12a is not output during execution of the bit operation instruction, the above-mentioned addition of the signal 9a and the signal 13a is not performed,
The address output 13a of the word operation processor 13 and the real address 14a are the same address. Therefore, as shown in FIG. 6, the first area of the OBJ memory 10 is a map of the word instruction register 11. A jump instruction is given to the first area of the OBJ memory 10, and when the jump destination address is set to the head address of the word instruction register 11, the word arithmetic processor 13 searches the head of the register 11 to When the instruction is a word operation instruction, the word operation instruction can be immediately executed as described below. It goes without saying that the object code may be transferred to the register 11 by switching the address of the OBJ memory instead of the jump instruction.

ビット演算処理プロセッサ12が読み出した命令が第5
図のワード演算命令SUB17の場合、前述したように、ビ
ット演算処理プロセッサ12はアドレス加算許可信号12a
を出力する。これにより、命令コードに基づいてアドレ
ス加算器14がワード演算処理プロセッサ13のアドレス13
aに前述したオブジェクトコードのOBJメモリ10における
先頭アドレス「メ50」を加算し、第7図に示す様に、当
該オブジェクトコードがワード命令レジスタ11の写像と
なる。従って、ワード演算処理プロセッサ13はこのレジ
スタ11の内容を実行することで、ワード演算命令を実行
することができる。
The fifth instruction is the one read by the bit arithmetic processor 12
In the case of the word operation instruction SUB17 in the figure, as described above, the bit operation processor 12 causes the address addition enable signal 12a
Is output. As a result, the address adder 14 makes the address 13 of the word arithmetic processor 13 based on the instruction code.
The aforesaid object code, in the OBJ memory 10, is added to the start address "50" of the object code, and the object code becomes a map of the word instruction register 11, as shown in FIG. Therefore, the word operation processor 13 can execute the word operation instruction by executing the contents of the register 11.

上述した実施例の様に、ビット演算命令とワード演算
命令が混在したプログラムをサイクリックに実行するプ
ログラマブルコントローラでは、ビット演算命令とワー
ド演算命令は、プログラムされた順番で実行する必要が
ある。これは、今回の命令の演算結果が次回の命令の演
算に使用されるためである。そこで、ビット演算処理プ
ロセッサとワード演算処理プロセッサは互いに同期を取
りながらプログラムを実行する必要がある。上述した実
施例では、ビット演算処理プロセッサ12がワード演算命
令をワード命令レジスタ11を使用してワード演算処理プ
ロセッサ13にオブジェクトコードを与える構成のため、
ワード演算処理プロセッサ13は同期を意識することなく
単にレジスタ11をサーチするのみで、同期をとってワー
ド演算命令を実行することができる。
In a programmable controller that cyclically executes a program in which bit operation instructions and word operation instructions are mixed, as in the above-described embodiments, the bit operation instructions and word operation instructions must be executed in the programmed order. This is because the operation result of this instruction is used for the operation of the next instruction. Therefore, the bit arithmetic processor and the word arithmetic processor need to execute the program in synchronization with each other. In the above-described embodiment, because the bit arithmetic processor 12 is configured to give a word arithmetic instruction to the word arithmetic processor 13 by using the word instruction register 11,
The word operation processor 13 can execute the word operation instruction in synchronization only by searching the register 11 without being aware of the synchronization.

上述した実施例によれば、ワード演算処理プロセッサ
13は直接実行できるマシン語でワード演算命令を与えら
れるので、ワード演算命令を解読する時間が無くなり、
処理の高速化が達成される。また、ビット演算処理プロ
セッサがワード演算命令をオブジェクトコードに変換す
るに際し、ワード演算命令をOBJメモリの該当オブジェ
クトコード格納アドレスで行なう構成としているので、
ワード命令レジスタ11をアドレス加算器とバッファのみ
で構成できる。更にまた、ビット演算命令中にあるワー
ド演算命令を専用に設けたワード演算処理プロセッサに
実行させる構成のため、他の処理に煩わされることがな
く、処理の高速化を図ることができる。第8図は、機械
制御専用のワード演算処理プロセッサ13を設けた場合の
処理速度の向上を示すグラフである。このグラフの横軸
は制御プログラム中のワード演算命令の割合を示し、縦
軸は処理時間をとってある。尚、横線Iは汎用プロセッ
サの処理速度を示している。ビット演算命令とワード演
算命令を両命令ともワード演算処理可能なプロセッサで
実行した場合、曲線IIに示す様に、その処理速度は、ワ
ード演算命令が増えるに従い急激に遅くなり、ワード演
算命令の割合が10パーセントで汎用プロセッサの処理速
度にまで落ちる。しかし、曲線IIIに示す様に、本実施
例のごとくワード演算命令は専用のプロセッサで処理し
ビット演算命令は汎用プロセッサで処理する構成とする
ことで、各段の処理の高速化が達成される。本実施例の
場合には、これに加えてワード演算命令をオブジェクト
コードで与えるため、より一層の高速が達成でき、従来
割り込み方式に比べてワード演算命令の処理時間を数十
分の1から数百分の1に短縮することが可能になる。
According to the embodiment described above, the word arithmetic processor
Since 13 is a machine language that can be directly executed and given a word operation instruction, there is no time to decode the word operation instruction,
Higher processing speed is achieved. Further, when the bit operation processor converts the word operation instruction into the object code, the word operation instruction is configured to be executed at the corresponding object code storage address of the OBJ memory.
The word instruction register 11 can be composed of only an address adder and a buffer. Furthermore, since the word operation processor included in the bit operation instructions is executed by the dedicated word operation processor, the processing can be speeded up without being bothered by other processing. FIG. 8 is a graph showing the improvement in processing speed when the word processor 13 dedicated to machine control is provided. The horizontal axis of this graph shows the ratio of word operation instructions in the control program, and the vertical axis shows the processing time. The horizontal line I indicates the processing speed of the general-purpose processor. When both bit operation instructions and word operation instructions are executed by a processor capable of word operation processing, the processing speed sharply slows as the number of word operation instructions increases, as shown in curve II. Will fall to the speed of a general-purpose processor at 10%. However, as shown in the curve III, the word operation instructions are processed by the dedicated processor and the bit operation instructions are processed by the general-purpose processor as in the present embodiment, whereby the processing speed of each stage is increased. . In the case of the present embodiment, in addition to this, a word operation instruction is given by an object code, so that even higher speed can be achieved, and the processing time of the word operation instruction is from several tenths to several tenths as compared with the conventional interrupt method. It will be possible to reduce it to one hundredth.

〔発明の効果〕〔The invention's effect〕

本発明によれば、ビット演算命令とワード演算命令が
混在する制御プログラムを高速処理できるという効果が
ある。
According to the present invention, there is an effect that a control program in which bit operation instructions and word operation instructions are mixed can be processed at high speed.

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

第1図は本発明の一実施例に係るプログラマブルコント
ローラの構成図、第2図はプログラマブルコントローラ
の全体構成図、第3図は第1図に示すワード命令レジス
タの構成と信号制御を説明する図、第4図は命令の格納
フォーマットを示す図、第5図は制御プログラムとSEQ
メモリ及びOBJメモリの関係を示す図、第6図及び第7
図はSEQメモリとワード命令レジスタの関係説明図、第
8図はワード演算処理専用のプロセッサを設けた場合の
性能向上を示すグラフである。 1……プログラマブルコントローラ、2……CPU、3…
…シーケンス演算処理装置、9……シーケンスプログラ
ム(SEQ)メモリ、10……オブジェクトコード(OBJ)メ
モリ、11……ワード命令レジスタ、12……ビット演算処
理専用プロセッタ、13……ワード演算処理専用プロセッ
サ。
FIG. 1 is a configuration diagram of a programmable controller according to an embodiment of the present invention, FIG. 2 is an overall configuration diagram of the programmable controller, and FIG. 3 is a diagram for explaining the configuration and signal control of the word instruction register shown in FIG. , FIG. 4 is a diagram showing a storage format of an instruction, and FIG. 5 is a control program and SEQ.
6 and 7 showing the relationship between the memory and the OBJ memory
FIG. 8 is a diagram for explaining the relationship between the SEQ memory and the word instruction register, and FIG. 8 is a graph showing performance improvement when a processor dedicated to word arithmetic processing is provided. 1 ... Programmable controller, 2 ... CPU, 3 ...
… Sequence operation processing device, 9 …… Sequence program (SEQ) memory, 10 …… Object code (OBJ) memory, 11 …… Word instruction register, 12 …… Bit arithmetic processing dedicated processor, 13 …… Word arithmetic processing dedicated processor .

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ビット演算命令中にワード演算命令が混在
するシーケンスプログラムの各命令を実行するプログラ
マブルコントローラにおいて、前記シーケンスプログラ
ム中の各ワード演算命令に対応するオブジェクトコード
を格納した第1メモリと、前記シーケンスプログラム中
の各命令が夫々ビット演算命令であるかワード演算命令
であるかを示す識別情報及びワード演算命令の場合に該
ワード演算命令に該当するオブジェクトコードの格納先
を示す前記第1メモリ中のアドレスを格納した第2メモ
リと、該第2メモリの各命令をサイクリックに読み出し
前記識別情報がビット演算命令を示すときは該ビット演
算命令を実行しワード演算命令であるときは所要命令を
出力するビット演算命令処理専用プロセッサと、該ビッ
ト演算命令処理専用プロセッサが前記所要命令を出力し
たとき当該ワード演算命令に対応する前記アドレスに基
づいて前記第1メモリから該当オブジェクトコードを読
み出し該オブジェクトコードを格納するレジスタと、該
レジスタをサーチしオブジェクトコードが格納されたと
き該オブジェクトコードを読み込んで実行するワード演
算命令処理専用プロセッサとを備えることを特徴とする
プログラマブルコントローラ。
1. A programmable controller that executes each instruction of a sequence program in which word operation instructions are mixed in bit operation instructions, and a first memory storing an object code corresponding to each word operation instruction in the sequence program, Identification information indicating whether each instruction in the sequence program is a bit operation instruction or a word operation instruction, and in the case of a word operation instruction, the first memory indicating a storage location of an object code corresponding to the word operation instruction A second memory storing an address therein and each instruction of the second memory is cyclically read, and when the identification information indicates a bit operation instruction, the bit operation instruction is executed, and when it is a word operation instruction, a required instruction And a processor dedicated to bit operation instruction processing that outputs When the processor outputs the required instruction, the object code is read from the first memory based on the address corresponding to the word operation instruction, a register for storing the object code, and the object code is stored by searching the register. A programmable controller comprising: a processor dedicated to word operation instruction processing that reads and executes the object code when
【請求項2】請求項1において、前記ビット演算命令処
理専用プロセッサ及びワード演算命令処理専用プロセッ
サの他に、プログラマブルコントローラ全体を統括する
統括用プロセッサを備えることを特徴とするプログラマ
ブルコントローラ。
2. The programmable controller according to claim 1, further comprising an integrated processor for integrating the entire programmable controller in addition to the bit operation instruction processing dedicated processor and the word operation instruction processing dedicated processor.
JP1334839A 1989-12-26 1989-12-26 Programmable controller Expired - Fee Related JP2529429B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1334839A JP2529429B2 (en) 1989-12-26 1989-12-26 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1334839A JP2529429B2 (en) 1989-12-26 1989-12-26 Programmable controller

Publications (2)

Publication Number Publication Date
JPH03196204A JPH03196204A (en) 1991-08-27
JP2529429B2 true JP2529429B2 (en) 1996-08-28

Family

ID=18281797

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1334839A Expired - Fee Related JP2529429B2 (en) 1989-12-26 1989-12-26 Programmable controller

Country Status (1)

Country Link
JP (1) JP2529429B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2848060B2 (en) * 1991-10-24 1999-01-20 株式会社日立製作所 Programmable controller and sequence control method
WO2000073863A1 (en) * 1999-05-28 2000-12-07 Mitsubishi Denki Kabushiki Kaisha Programmable controller

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5965310A (en) * 1982-10-06 1984-04-13 Mitsubishi Electric Corp Arithmetic processor of programmable controller
JPS6336405A (en) * 1986-07-31 1988-02-17 Omron Tateisi Electronics Co Programmable controller
JP2784001B2 (en) * 1987-08-26 1998-08-06 松下電工株式会社 Instruction processing circuit of programmable controller
JP2619425B2 (en) * 1987-10-29 1997-06-11 豊田工機株式会社 Sequence controller

Also Published As

Publication number Publication date
JPH03196204A (en) 1991-08-27

Similar Documents

Publication Publication Date Title
KR890010673A (en) Data processor and its processing control method
JPS5849881B2 (en) Data search
JPH056894B2 (en)
JP2529429B2 (en) Programmable controller
US5504930A (en) Programmable controller and sequence control method
JPS62226231A (en) Processor
JP3768516B1 (en) Multiprocessor system and program execution method in the system
JPH0377137A (en) Information processor
JP3352871B2 (en) Programmable controller
JPS6240538A (en) Data processor
JPS63314644A (en) Data processor
JPH04268928A (en) Emulation device and semiconductor device
JPH0731527B2 (en) Programmable controller
JP3074809B2 (en) Programmable controller
JPS6325373B2 (en)
JP2606658B2 (en) Logic simulator and control method
JP2692141B2 (en) Sequence controller
JP3414579B2 (en) Programmable controller
JPH06119169A (en) Microcomputer
JPH05274341A (en) Vector instruction processor
JPH0259829A (en) Microcomputer
JPH0454531A (en) Program reading circuit
JPH09185525A (en) Protocol debugging system
JPS63197234A (en) Information processor
JPS625439A (en) Instruction code expansion system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees