JPH03196204A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH03196204A
JPH03196204A JP33483989A JP33483989A JPH03196204A JP H03196204 A JPH03196204 A JP H03196204A JP 33483989 A JP33483989 A JP 33483989A JP 33483989 A JP33483989 A JP 33483989A JP H03196204 A JPH03196204 A JP H03196204A
Authority
JP
Japan
Prior art keywords
instruction
word
processor
bit
operation instruction
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
JP33483989A
Other languages
Japanese (ja)
Other versions
JP2529429B2 (en
Inventor
Mitsuaki Kobayashi
光明 小林
Hiromasa Yamaoka
弘昌 山岡
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

Landscapes

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

Abstract

PURPOSE:To process a control program including both bit and word arithmetic instructions by providing a processor exclusive for bit arithmetic instruction processing and a processor capable of the word arithmetic processing. CONSTITUTION:A bit arithmetic processor 12 gives a word arithmetic instruction and an object code to a word arithmetic processor 13 via a word instruction register 11. Therefore the processor 13 can carry out the word arithmetic instructions with synchronization just by searching the register 11 without being conscious of the synchronization. Thus the processor 13 can apply the word arithmetic instruction in a machine language that can be directly carried out and therefore can omit the time to decode the word arithmetic instructions. As a result, the processing speed is increased with a programmable controller.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラマブルコントローラに係り、特に、ビ
ット演算命令中にワード演算命令が混在する命令を高速
に実行するに好適なプログラマブルコントローラとその
プログラム実行方法とプログラム格納用メモリとプログ
ラム命令の格納方法に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a programmable controller, and in particular to a programmable controller suitable for rapidly executing instructions in which word operation instructions are mixed in bit operation instructions, and its program execution. The present invention relates to a method, a memory for storing programs, and a method for storing program instructions.

〔従来の技術〕[Conventional technology]

プログラマブルコントローラが対象とする被制御対象も
近年は複雑になり、シーケンスコントロールの中にPI
D制御を行なうことが当たり前になってきている。この
ため、プログラマブルコントローラの制御命令プログラ
ムは、シーケンス命令であるラダー命令(ビット命令)
と数値演算命令(ワード演算命令)とが混在するように
なっている。
The objects to be controlled by programmable controllers have become more complex in recent years, and PI is included in sequence control.
It has become commonplace to perform D control. For this reason, 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).

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

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

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

本発明の目的は、ビット演算命令中にワード演算命令が
混在する命令を高速に処理することのできるプログラマ
ブルコントローラとそのプログラム実行方法並びにプロ
グラム命令格納方法とメモリを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a programmable controller capable of processing instructions in which word operation instructions are mixed in bit operation instructions at high speed, a program execution method thereof, a program instruction storage method, and a memory.

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

上記目的は、プログラマブルコントローラ全体を統括す
る汎用プロセッサの他に、ビット演算命令処理専用プロ
セッサとワード演算命令処理専用プロセッサとを設ける
ことで、達成される。
The above object is achieved by providing a processor dedicated to processing bit operation instructions and a processor dedicated to processing word operation instructions in addition to a general-purpose processor that controls the entire programmable controller.

上記目的、ビット演算命令処理専用プロセッサがワード
演算命令を認識してワード演算命令を処理するプロセッ
サに割り込みをかけて該プロセッサにワード演算命令を
実行させる場合に、該ワード演算命令に対応したオブジ
ェクミーコードを該プロセッサに渡すことで、達成され
る。
For the above purpose, when a processor dedicated to processing bit operation instructions recognizes a word operation instruction and interrupts the processor processing the word operation instruction to cause the processor to execute the word operation instruction, the object memory corresponding to the word operation instruction is This is accomplished by passing code to the processor.

上記目的は、プログラマブルコントローラの実行する命
令をメモリに格納する場合に、各構成命令毎にそれがビ
ット演算命令なのかワード演算命令なのかを識別する情
報を付加することで、達成される。
The above object is achieved by adding information identifying whether each component instruction is a bit operation instruction or a word operation instruction when storing instructions to be executed by a programmable controller in a memory.

〔作 用〕[For production]

プログラマブルコントローラ全体を統括する汎用プロセ
ッサの他にワード演算命令処理専用プロセッサを設ける
ことで、この専用プロセッサはワード演算命令以外の処
理に煩わされることがなく、処理を高速に実行すること
ができる。
By providing a processor dedicated to processing word operation instructions in addition to the general-purpose processor that controls the entire programmable controller, this dedicated processor is not burdened with processing other than word operation instructions, and processing can be executed at high speed.

また、ワード演算命令を実行するプロセッサは、ワード
演算命令をビット演算命令処理専用プロセッサが認識し
てこれをワード演算命令を実行する場合にオブジェクト
コードで渡すことで、該プロセッサはマシン語への翻訳
が必要となり、その分だけ処理の高速化を図れる。
In addition, when a processor executes a word operation instruction, a processor dedicated to processing bit operation instructions recognizes the word operation instruction and passes it as an object code when executing the word operation instruction, so that the processor can translate it into machine language. is required, and the processing speed can be increased accordingly.

更にまた。各構成命令を識別情報にてビット演算命令で
あるかワード演算命令であるかを区別できるので、両命
令の判別を迅速に行なうことが可能になる。
Yet again. Since each component instruction can be distinguished as a bit operation instruction or a word operation instruction using identification information, it is possible to quickly determine whether the two instructions are the same.

〔実施例〕〔Example〕

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

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

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

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

第3図は、ワード命令レジスタ11の構成とシーケンス
演算処理装置3内での信号経路を説明する図である。本
実施例では、ワード命令レジスタ11は、アドレス加算
器14と、オブジェクトバッファ15で構成しである。
FIG. 3 is a diagram illustrating the configuration of the word instruction register 11 and the signal paths within the sequence arithmetic processing device 3. In this embodiment, the word instruction register 11 is composed of an address adder 14 and an object buffer 15.

尚、第3図に示す各信号9a。Note that each signal 9a shown in FIG.

12a、13a、14aについては後述する。12a, 13a, and 14a will be described later.

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

第5図は、ビット演算命令中にワード演算命令が混在し
たラダー言語記述16のプログラム説明図である。接点
シンボルやコイルシンボルはビット演算命令であり、S
UBシンボル17がワード5演算命令である。第5図に
示すX0OO,X0OI、 ROOI。
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 S
UB symbol 17 is a word 5 operation instruction. X0OO, X0OI, ROOI shown in FIG.

ROO2,YOOO等はPIOメモリ4のビットアドレ
スであり、RWloo、 R11200はP工0メモリ
4のワードアドレスである。斯かるプログラムのビット
演算命令を第4図のフォーマットでSEQメモリ9に格
納し、ワード演算命令SUBについては、当該ワード演
算命令の加算値メ50とパラメータ(RWloo。
ROO2, YOOO, etc. are bit addresses of the PIO memory 4, and RWloo, R11200 are word addresses of the PIO memory 4. The bit operation instructions of such a program are stored in the SEQ memory 9 in the format shown in FIG.

HlooO,Ru2O3)が第4図ノフォーマットでS
EQメモリに格納される。
HlooO, Ru2O3) is S in the format shown in Figure 4.
Stored in EQ memory.

OBJメモリ10には、プログラム中の各ワード演算命
令をマシン語つまりオブジェクトコードで登録してあり
、第5図に示すワード5演算命令5UB17のオブジェ
クトコードは、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 5 operation instruction 5UB17 shown in FIG.
It is stored in the area.

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

ワード演算命令であることを認識したビット演算処理プ
ロセッサ12は、第3図のアドレス加算許可信号12a
をアドレス加算器14に出力する。このアドレス加算器
14には、ビット演算処理プロセッサ12がSEQメモ
リ9から読み出した命令コード9aとワード演算処理プ
ロセッサ13からのアドレス信号13aとが入力されて
おり、アドレス加算許可信号12aにより両信号9a、
13aが加算される。
The bit operation processor 12, which has recognized that it is a word operation instruction, outputs the address addition permission signal 12a in FIG.
is output to the address adder 14. The address adder 14 receives the instruction code 9a read out from the SEQ memory 9 by the bit operation processor 12 and the address signal 13a from the word operation processor 13, and receives both signals 9a by the address addition permission signal 12a. ,
13a is added.

これにより、OBJメモリ10の該当オブジェクトコー
ドが格納させている実アドレスが求まる。
As a result, the real address where the corresponding object code is stored in the OBJ memory 10 is determined.

第6図は、ビット演算命令実行中のOBJメモリ10と
ワード命令レジスタ11の関係を示す図である。ビット
演算命令実行中は、アドレス加算許可信号12aは出力
されないので、上述した信号9aと信号13aとの加算
はされず、ワード演算プロセッサ13のアドレス出力1
3aと、実アドレス14aとは同一アドレスである。こ
のため、第6図に示す様に、OBJメモリlOの最初の
エリアがワード命令レジスタ11の写像となっている。
FIG. 6 is a diagram showing the relationship between the OBJ memory 10 and the word instruction register 11 during execution of a bit operation instruction. During execution of a bit operation instruction, the address addition permission signal 12a is not output, so the above-mentioned signal 9a and signal 13a are not added, and the address output 1 of the word operation processor 13 is not output.
3a and the real address 14a are the same address. Therefore, as shown in FIG. 6, the first area of the OBJ memory IO is a mapping of the word instruction register 11.

○BJメモリlOの最初のエリアにはジャンプ命令が与
えられており、飛び先アドレスをワード命令レジスタ1
1の先頭アドレスにすると、ワード演算処理プロセッサ
13は該レジスタ11の先頭をサーチすることで、次の
命令がワード演算命令のとき該ワード演算命令を次に述
べる様に即実行することが可能となる。尚、ジャンプ命
令ではなく、○BJメモリのアドレスを切替えて該当オ
ブジェクトコードをレジスタIIに転送することでもよ
いことはいうまでもない。
○A jump instruction is given to the first area of BJ memory lO, and the jump destination address is set to word instruction register 1.
If the first address is set to 1, the word operation processor 13 can immediately execute the word operation instruction when the next instruction is a word operation instruction, as described below, by searching the beginning of the register 11. Become. It goes without saying that instead of using the jump instruction, the corresponding object code may be transferred to the register II by switching the address of the BJ memory.

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

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

上述した実施例によれば、ワード演算処理プロセッサ1
3は直接実行できるマシン語でワード演算命令を与えら
れるので、ワード演算命令を解読する時間が無くなり、
処理の高速化が達成される。
According to the embodiment described above, the word operation processor 1
3 is given word operation instructions in machine language that can be executed directly, so there is no time to decode the word operation instructions,
Faster processing is achieved.

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

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

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

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

第1図は本発明の一実施例に係るプログラマブルコント
ローラの構成図、第2図はプログラマブルコントローラ
の全体構成図、第3図は第1図に示すワード命令レジス
タの構成と信号制御を説明する図、第4図は命令の格納
フォーマットを示す図、第5図は制御プログラムとSE
Qメモリ及び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 explaining the configuration and signal control of the word instruction register shown in FIG. 1. , Figure 4 is a diagram showing the storage format of instructions, Figure 5 is a diagram showing the control program and SE
A diagram showing the relationship between Q memory and OBJ memory, Figures 6 and 7 are diagrams explaining the relationship between SEQ memory and word instruction register, and Figure 8 is a graph showing performance improvement when a processor dedicated to word operation processing is provided. It is. 1°゛Programmable controller, 2...CPU,
3... Sequence arithmetic processing device, 9... Sequence program (SEQ) memory, 10... Object code (OBJ) memory, 11... Word instruction register, 12... Processor dedicated to bit arithmetic processing, 13...・
- Processor dedicated to word operation processing.

Claims (1)

【特許請求の範囲】 1、ビット演算命令中にワード演算命令が混在する命令
を実行するプログラマブルコントローラにおいて、ワー
ド演算命令を認識し該ワード演算命令をワード演算処理
用のオブジェクトコードに変換するビット演算命令処理
専用プロセッサと、該ビット演算命令処理専用プロセッ
サから前記オブジェクトコードを渡されこれを直接実行
するワード演算処理可能なプロセッサとを備えることを
特徴とするプログラマブルコントローラ。 2、ビット演算命令中にワード演算命令が混在する命令
を実行するプログラマブルコントローラにおいて、該プ
ログラマブルコントローラ全体を統括するプロセッサの
他に、ワード演算命令を認識し該ワード演算命令をワー
ド演算処理用のオブジェクトコードに変換するビット演
算命令処理用プロセッサと、該ビット演算命令処理専用
プロセッサから前記オブジェクトコードを渡されこれを
直接実行するワード演算処理専用プロセッサとを備える
ことを特徴とするプログラマブルコントローラ。 3、ビット演算命令中にワード演算命令が混在する命令
を実行するプログラマブルコントローラにおいて、ワー
ド演算命令に対応したオブジェクトコードを格納したメ
モリと、ワード演算処理可能なプロセッサと、命令中の
ワード演算命令を認識し該ワード演算命令に対応するオ
ブジェクトコードを前記メモリから読み出して前記プロ
セッサに渡すビット演算命令処理専用プロセッサとを備
えることを特徴とするプログラマブルコントローラ。 4、ビット演算命令中にワード演算命令が混在する命令
を実行するプログラマブルコントローラにおいて、該プ
ログラマブルコントローラ全体を統括するプロセッサと
、ワード演算命令に対応したオブジェクトコードを格納
したメモリと、ワード演算処理専用プロセッサと、命令
中のワード演算命令を認識し該ワード演算命令に対応す
るオブジェクトコードを前記メモリから読み出して前記
ワード演算処理専用プロセッサに渡すビット演算命令処
理専用プロセッサとを備えることを特徴とするプログラ
マブルコントローラ。 5、ビット演算命令中にワード演算命令が混在する命令
を実行するプログラマブルコントローラにおいて、ワー
ド演算命令に対応するオブジェクトコードを格納したメ
モリと、命令がワード演算命令のときこれがワード演算
命令であることを認識し該ワード演算命令に対応するオ
ブジェクトコードを前記メモリから読み出すビット演算
処理専用プロセッサと、前記メモリから読み出されたオ
ブジェクトコードを受けるワード命令レジスタと、該ワ
ード命令レジスタをサーチし該ワード命令レジスタにオ
ブジェクトコードが前記メモリから渡されたときこれを
読み込んで実行するワード演算処理可能なプロセッサと
を備えることを特徴とするプログラマブルコントローラ
。 6、ビット演算命令中にワード演算命令が混在する命令
を実行するプログラマブルコントローラに設けられ、前
記命令を格納するメモリにおいて、各命令を夫々格納す
る領域に夫々当該命令がワード演算命令であるかビット
演算命令であるかを示すデータを格納する領域を設けた
ことを特徴とするプログラム命令格納用メモリ。 7、ビット演算命令中にワード演算命令が混在する命令
を実行するプログラマブルコントローラに設けられ、前
記命令を格納するメモリにおいて、各命令をメモリに格
納するにあたり、命令毎に該命令がワード演算命令であ
るかビット演算命令であるかを識別する情報を付加する
ことを特徴とするプログラム命令格納方法。 8、ビット演算処理用プロセッサとワード演算処理用プ
ロセッサとを備え、ビット演算命令中にワード演算命令
が混在する命令を実行するプログラマブルコントローラ
において、前記ビット演算処理用プロセッサは命令がワ
ード演算命令であった場合には該ワード演算命令に対応
するオブジェクトコードを前記ワード演算処理用プロセ
ッサに渡して直接実行させることを特徴とするプログラ
マブルコントローラのプログラム実行方法。 9、ビット演算処理用プロセッサとワード演算処理用プ
ロセッサとを備え、ビット演算命令中にワード演算命令
が混在する命令を実行するプログラマブルコントローラ
において、前記ワード演算処理用プロセッサが命令中の
ワード演算命令を実行する場合は直接実行可能なオブジ
ェクトコードで該ワード演算命令を前記ビット演算処理
用プロセッサから受け取って実行することを特徴とする
プログラマブルコントローラのプログラム実行方法。
[Claims] 1. In a programmable controller that executes an instruction in which a word operation instruction is mixed among bit operation instructions, a bit operation that recognizes the word operation instruction and converts the word operation instruction into an object code for word operation processing. A programmable controller comprising: a processor dedicated to processing instructions; and a processor capable of processing word operations, which receives the object code from the processor dedicated to processing bit operations instructions and directly executes the object code. 2. In a programmable controller that executes an instruction in which a word operation instruction is mixed with a bit operation instruction, in addition to the processor that controls the entire programmable controller, there is also a processor that recognizes the word operation instruction and converts the word operation instruction into an object for word operation processing. A programmable controller comprising: a processor for processing bit operation instructions that converts them into code; and a processor dedicated to word operation processing, which receives the object code from the processor dedicated to processing bit operation instructions and directly executes the object code. 3. In a programmable controller that executes an instruction in which a word operation instruction is mixed among bit operation instructions, a memory that stores an object code corresponding to the word operation instruction, a processor capable of processing word operations, and a word operation instruction in the instruction are provided. A programmable controller comprising: a processor dedicated to bit operation instruction processing that recognizes and reads an object code corresponding to the word operation instruction from the memory and passes it to the processor. 4. In a programmable controller that executes an instruction in which a word operation instruction is mixed with a bit operation instruction, a processor that controls the entire programmable controller, a memory that stores an object code corresponding to the word operation instruction, and a processor dedicated to word operation processing. and a processor dedicated to bit operation instruction processing that recognizes a word operation instruction in an instruction, reads an object code corresponding to the word operation instruction from the memory, and passes it to the word operation processing dedicated processor. . 5. In a programmable controller that executes an instruction in which word operation instructions are mixed among bit operation instructions, there is a memory that stores object code corresponding to the word operation instruction, and a memory that stores the object code corresponding to the word operation instruction, and a memory that stores the object code corresponding to the word operation instruction, and when the instruction is a word operation instruction, a memory that stores the object code corresponding to the word operation instruction. a processor dedicated to bit operation processing that recognizes and reads an object code corresponding to the word operation instruction from the memory; a word instruction register that receives the object code read from the memory; and a word instruction register that searches the word instruction register. and a processor capable of word operation processing that reads and executes object code when it is passed from the memory. 6. Provided in a programmable controller that executes an instruction in which a word operation instruction is mixed in a bit operation instruction, in a memory that stores the instruction, a bit is stored in an area for storing each instruction, respectively, to determine whether the instruction is a word operation instruction. A memory for storing program instructions, comprising an area for storing data indicating whether the instruction is an arithmetic instruction. 7. In a memory provided in a programmable controller that executes an instruction in which a word operation instruction is mixed among bit operation instructions and stores said instruction, when each instruction is stored in the memory, it is determined that the instruction is a word operation instruction for each instruction. A method for storing program instructions, characterized in that information is added to identify whether the instruction is a bit operation instruction or a bit operation instruction. 8. In a programmable controller that includes a bit operation processor and a word operation processor and executes an instruction in which a word operation instruction is mixed in the bit operation instruction, the bit operation processor is configured to execute an instruction in which the instruction is a word operation instruction. A program execution method for a programmable controller, characterized in that, in the case of a word operation instruction, an object code corresponding to the word operation instruction is passed to the word operation processor for direct execution. 9. In a programmable controller that includes a bit operation processing processor and a word operation processing processor and executes an instruction in which a word operation instruction is mixed in the bit operation instruction, the word operation processing processor executes a word operation instruction in the instruction. A program execution method for a programmable controller, characterized in that when executing a program, the word operation instruction is received from the bit operation processor and executed in a directly executable object code.
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 true JPH03196204A (en) 1991-08-27
JP2529429B2 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5504930A (en) * 1991-10-24 1996-04-02 Hitachi, Ltd. Programmable controller and sequence control method
US6810477B1 (en) * 1999-05-28 2004-10-26 Mitsubishi Denki Kabushiki Kaisha Programmable controller including instruction decoder for judging execution/non-execution based on the state of contact points after execution of a preceding sequence program

Citations (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
JPS6455602A (en) * 1987-08-26 1989-03-02 Matsushita Electric Works Ltd Instruction processing circuit for programmable controller
JPH01116702A (en) * 1987-10-29 1989-05-09 Toyoda Mach Works Ltd Sequence controller

Patent Citations (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
JPS6455602A (en) * 1987-08-26 1989-03-02 Matsushita Electric Works Ltd Instruction processing circuit for programmable controller
JPH01116702A (en) * 1987-10-29 1989-05-09 Toyoda Mach Works Ltd Sequence controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5504930A (en) * 1991-10-24 1996-04-02 Hitachi, Ltd. Programmable controller and sequence control method
US6810477B1 (en) * 1999-05-28 2004-10-26 Mitsubishi Denki Kabushiki Kaisha Programmable controller including instruction decoder for judging execution/non-execution based on the state of contact points after execution of a preceding sequence program

Also Published As

Publication number Publication date
JP2529429B2 (en) 1996-08-28

Similar Documents

Publication Publication Date Title
JPS5849881B2 (en) Data search
JPS6250934A (en) Interrupting control system of processor
JPH03196204A (en) Programmable controller
JPH0523447B2 (en)
JPS6240538A (en) Data processor
JPH0377137A (en) Information processor
JP3013619B2 (en) Programmable controller
JPH0731527B2 (en) Programmable controller
JP3352871B2 (en) Programmable controller
JPH0259829A (en) Microcomputer
JPS62254237A (en) Inter-printer type branch instruction executing system
JPS6232540A (en) Information processor
JPS60241104A (en) Arithmetic method of digital controller
JPS63280333A (en) Microprogram controller
JPS6325373B2 (en)
JPH04338825A (en) Arithmetic processor
JPH0353348A (en) Debugging system for microprogram
JPS5817585A (en) Virtual storage processor
JPH0219493B2 (en)
JP2002333985A (en) Register saving and restoring method
JPH0327453A (en) Designation processing system for program
JPH0883188A (en) Multitask processing computer
JPS63217433A (en) Control system for execution of program
JPS62282331A (en) Arithmetic processing unit
JPH08297583A (en) Processor and method for interruption processing

Legal Events

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