JPH01116702A - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPH01116702A
JPH01116702A JP27455087A JP27455087A JPH01116702A JP H01116702 A JPH01116702 A JP H01116702A JP 27455087 A JP27455087 A JP 27455087A JP 27455087 A JP27455087 A JP 27455087A JP H01116702 A JPH01116702 A JP H01116702A
Authority
JP
Japan
Prior art keywords
data
cpu
word
address
bit
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
JP27455087A
Other languages
Japanese (ja)
Other versions
JP2619425B2 (en
Inventor
Yoshio Sakakibara
榊原 吉男
Taketoshi Kato
豪俊 加藤
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.)
Toyoda Koki KK
Original Assignee
Toyoda Koki KK
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 Toyoda Koki KK filed Critical Toyoda Koki KK
Priority to JP27455087A priority Critical patent/JP2619425B2/en
Publication of JPH01116702A publication Critical patent/JPH01116702A/en
Application granted granted Critical
Publication of JP2619425B2 publication Critical patent/JP2619425B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To process application instruction at high speed by providing a fetching register to have the capacity of several words, and each selective circuit to select an address bus and a data bus. CONSTITUTION:The data of newest several words read by a bit CPU 1 are always stored in a fetching register 5. Consequently, a word CPU 2 to have received a processing request is not necessary to read anew instruction from a sequence program memory 3, and can process the application instruction such as reading the contents of a data memory 4 according to the contents of the fetching register 5. In such a case, the address of the data memory 4 is controlled by an address bus selective circuit 6, the contents of a data bus 17 of a word CPU are controlled by a data bus selective circuit 7, and without reading the contents of an operand, the word CPU 2 can read and write the data designated by the operand.

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は工作機械、ロボット等を制御するシーケンスコ
ントローラに関する。
DETAILED DESCRIPTION OF THE INVENTION "Field of Industrial Application" The present invention relates to a sequence controller for controlling machine tools, robots, etc.

「従来の技術」 シーケンスコントローラではリレー回路図に対応したA
ND論理等のビット演算命令を実行することが多いなめ
、1ビツト毎の論理演算を専門に処理するビットCPL
J(処理装置)と、16ビツトの1ワード毎の数値計算
など普通のコンピュータ命令を専門に処理するワードC
PU(処理装置)とを備えたマルチCPU方式で構成さ
れたものが多い。
"Conventional technology" In the sequence controller, A that corresponds to the relay circuit diagram
Since bit operation instructions such as ND logic are often executed, bit CPL specializes in logical operations for each bit.
J (processing unit) and word C, which specializes in processing ordinary computer instructions such as numerical calculations for each 16-bit word.
Many of them are configured with a multi-CPU system including a PU (processing unit).

従来のマルチCPU方式の装置は、第6図に示す様に、
シーケンスプログラムメモリ3及びデータメモリ4のそ
れぞれのアドレスバス21,23及びデータバス22.
24にビットCPU1とワードCPU2とが並列に接続
されたものであった。
The conventional multi-CPU type device, as shown in Figure 6,
Address buses 21, 23 and data buses 22 . of sequence program memory 3 and data memory 4, respectively.
24, a bit CPU1 and a word CPU2 were connected in parallel.

ビット演算等の基本命令を実行するビットCPU1と、
数値計算等の応用命令を実行するワードCPU2とは互
いに処理要求信号線25.26で結ばれている。基本的
な制御はビットCPUIで行・い、ビットCPU 1が
応用命令を検知した場合にワードCPU2に処理要求2
5を出し、ワードCPU2を作動させていた。このため
、処理要求25を受けたワードCP・U2は、実行すべ
き応用命令が格納されているシーケンスプログラムメモ
リ3のアドレスをビットc P U 1 j>zら教え
てもらい、改めて当該応用命令をシーケンスプログラム
メモリ3から読出して処理を行う必要があった。
a bit CPU 1 that executes basic instructions such as bit operations;
The word CPU 2, which executes applied instructions such as numerical calculations, is connected to the word CPU 2 by processing request signal lines 25 and 26. Basic control is performed by the bit CPUI, and when bit CPU 1 detects an application instruction, processing request 2 is sent to word CPU 2.
He rolled a 5 and activated Word CPU2. Therefore, the word CP U2 that has received the processing request 25 receives the address of the sequence program memory 3 where the application instruction to be executed is stored, such as bit cPU 1 j>z, and executes the application instruction again. It was necessary to read out the sequence program from the sequence program memory 3 and process it.

それ故、プログラム命令中に応用命令が介在すると、処
理速度が非常に遅くなるという問題点があった。
Therefore, there is a problem in that when an application instruction is interposed in a program instruction, the processing speed becomes extremely slow.

「発明が解決しようとする問題点」 本発明は上記の問題点を解決するためなされたものであ
り、シーケンスコントローラの基本的な処理であるビッ
ト演算(基本命令)の処理速度を確保しつつ、応用命令
の処理を高速化することができる装置を提供することを
目的とする。
"Problems to be Solved by the Invention" The present invention has been made to solve the above problems, and while ensuring the processing speed of bit operations (basic instructions), which are the basic processing of sequence controllers, An object of the present invention is to provide a device that can speed up the processing of application instructions.

「問題点を解決するための手段」 実施例図面である第1図を参照し説明する。上記の目的
を達成するため本発明では、主にビット演算を行うビッ
トC,PU1と、数値演算等を行うワードCPU2とを
備えたマルチCPU方式のシーケンスコントローラにお
いて、シーケンスプログラムメモリ3とビットCPU1
とを接続するデータバス12のデータを、少なくとも一
つの応用命令を構成するワード数だけ常時一時記憶する
フェッチレジスタ5と、前記フェッチレジスタ5の出力
又はデータメモリ4からのデータバス13のいずれかを
選択してワードCPU2のデータバス17に接続するデ
ータバス選択回路7と、前記フェッチレジスタ5の出力
、ピッl−CP U 1からのアドレスバス14、又は
ワードCPU2からのアドレスバス16のいずれか一つ
を選択してデータメモリ4のアドレスバス15に接続す
るアドレスバス選択回路6と、ワードCPU2からのア
ドレスバス16のデータ及びビットCPUIからの処理
要求信号18に従って前記データバス選択回路7及びア
ドレスバス選択回路6に選択信号を出力するアドレスデ
コーダ回路8と、を備えることを特徴とするシーケンス
コントローラが提供される。
"Means for Solving Problems" This will be explained with reference to FIG. 1, which is an embodiment drawing. In order to achieve the above object, the present invention provides a multi-CPU type sequence controller that includes bits C and PU1 that mainly perform bit operations, and a word CPU 2 that performs numerical operations.
a fetch register 5 that constantly temporarily stores data on a data bus 12 connected to the data bus 12 by the number of words constituting at least one application instruction; A data bus selection circuit 7 selectively connects to the data bus 17 of the word CPU 2, the output of the fetch register 5, the address bus 14 from the CPU 1, or the address bus 16 from the word CPU 2. An address bus selection circuit 6 selects and connects the address bus 15 of the data memory 4 to the data bus selection circuit 7 and the address bus according to the data on the address bus 16 from the word CPU 2 and the processing request signal 18 from the bit CPU 2. A sequence controller is provided that includes an address decoder circuit 8 that outputs a selection signal to the selection circuit 6.

「作用」 上記の構成によれば、基本的な命令は専用のピッ)CP
UIにより高速処理される。一方、フェッチレジスタ5
にはビットCPtJ1により読出された最新の数ワード
のデータが常時記憶されているから、ビットCPLI 
1が応用命令を検知した時点には当該応用命令を構成す
るオペコード、オペランド等の数ワードのデータ(命令
)は全てフェッチレジスタ5に収容されていることにな
る。それ故、処理要求を受けたワードCPU2は、改め
てシーケンスプログラムメモリ3から命令を読出す必要
はなく、フェッチレジスタ5の内容に従ってデータメモ
リ4の内容を読出すなど当該応用命令の処理を行うこと
ができ、処理を高速化するこ・とができる。当該応用命
令の処理を行う際に、データメモリ4のアドレスはアド
レスバス選択回路6により制御され、ワードCPtJの
データバス17の内容はデータバス選択回路7により制
御されるから、ワードCPU2はオペランドの内容を読
込まなくてもオペランドの指定するデータの読出し、書
込みが可能になり、応用命令の処理がさらに高速化され
る。
"Operation" According to the above configuration, the basic command is a dedicated PIP) CP.
The UI allows high-speed processing. On the other hand, fetch register 5
The latest few words of data read by bit CPtJ1 are always stored in bit CPLI.
At the time when 1 detects an applied instruction, several words of data (instructions) such as opcodes and operands constituting the applied instruction are all stored in the fetch register 5. Therefore, the word CPU 2 that receives the processing request does not need to read the instruction from the sequence program memory 3 again, and can process the applied instruction such as reading the contents of the data memory 4 according to the contents of the fetch register 5. It is possible to speed up processing. When processing the application instruction, the address of the data memory 4 is controlled by the address bus selection circuit 6, and the contents of the data bus 17 of word CPtJ are controlled by the data bus selection circuit 7. It becomes possible to read and write data specified by operands without reading the contents, further speeding up the processing of application instructions.

「実施例」 本発明の実施例について図面に従って説明する。"Example" Embodiments of the present invention will be described with reference to the drawings.

第1図は実施例の基本組成を示すブロック図、第2図及
び第3図は詳細構成を示す要部ブロック図である。
FIG. 1 is a block diagram showing the basic composition of the embodiment, and FIGS. 2 and 3 are main part block diagrams showing the detailed structure.

このシーケンスコントローラは、ビット演算等の基本命
令を実行するビットCPUIと、数値計算等の応用命令
を実行するワードCPU2との二つのCPU(中央処理
ユニット)を備えている。また、メモリには、基本命令
及び応用命令からなる機械制御のためのシーケンスプロ
グラムが格納されるシーケンスプログラムメモリ3と、
制御途中での種々のデータが記憶されるデータメモリ4
とを備えている。シーケンス10グラムメモリ3とビッ
トCPUIとはアドレスバス11及びデータバス12に
より直接結ばれている。データメモリ4とビットCPU
Iとはデータバス13は直接接続されているが、アドレ
スバス14,15はアドレスバス選択回路6を介して接
続されている。
This sequence controller includes two CPUs (Central Processing Units): a bit CPUI that executes basic instructions such as bit operations, and a word CPU 2 that executes applied instructions such as numerical calculations. The memory also includes a sequence program memory 3 in which a sequence program for machine control consisting of basic instructions and application instructions is stored;
Data memory 4 in which various data during control is stored
It is equipped with The sequence 10-gram memory 3 and the bit CPUI are directly connected by an address bus 11 and a data bus 12. Data memory 4 and bit CPU
The data bus 13 is directly connected to I, but the address buses 14 and 15 are connected via an address bus selection circuit 6.

シーケンスプログラムメモリ3のデータバス12にはフ
ェッチレジスタ5が接続されている。
A fetch register 5 is connected to the data bus 12 of the sequence program memory 3.

フェッチレジスタ5は、第2図に示す様に、4つのレジ
スタ51.5153.54を有し、4ワードの容量を有
するレジスタであり、ビットCPU1によりアドレス指
定されて読出されたシーケンスプログラムメモリ3のデ
ータを、過去4回分に渡って常時記憶している。この4
ワードの内容は、読出されたデータ(命令)が応用命令
である場合には、命令の種類を示すオペコード(51)
と、命令の対象となる数値(定数)またはその数値が格
納されたデータメモリ4のアドレスを示す3つのオペラ
ンド(52,53,54>からなる。
As shown in FIG. 2, the fetch register 5 has four registers 51, 5153, and 54, and has a capacity of 4 words. Data is always stored for the past four times. This 4
If the read data (instruction) is an application instruction, the content of the word is an operation code (51) indicating the type of instruction.
and three operands (52, 53, 54>) indicating a numerical value (constant) to be the object of the instruction or an address of the data memory 4 in which the numerical value is stored.

フェッチレジスタ5の出力はアドレスバス選択回路6及
びデータバス選択回路7に接続される。
The output of the fetch register 5 is connected to an address bus selection circuit 6 and a data bus selection circuit 7.

第2図に示す様に、データバス選択回路7には、フェッ
チレジスタ5の全てのワードレジスタ51へ54が接続
されているのに対し、アドレスバス選択回路6には下位
3ワードのワードレジスタ52.53.54Lか接続さ
れていない、これは、アドレスバス選択回路6では3つ
のオペランド部分しか要しないからである。
As shown in FIG. 2, the data bus selection circuit 7 has word registers 54 connected to all word registers 51 of the fetch register 5, while the address bus selection circuit 6 has word registers 52 connected to all word registers 51 of the fetch register 5. .53 and 54L are not connected, because the address bus selection circuit 6 requires only three operand parts.

アドレスバス選択回路6には、上記フェッチレジスタ5
の出力の他に、ビットCPUIからのアドレスバス14
及びワードCPU2からのアドレスバス16が接続され
ている。アドレスバス選択回路6は、第2図に示す様に
、3つのゲート回路61.62.63と2つのマルチプ
レクサ64゜65からなり、アドレスデコーダ回路8か
らの選択信号C5O,C8I、C82及びビットCPU
1からの処理要求信号REQに従ってフェッチレジスタ
5の3つのワードレジスタ52.53゜54の出力又は
ビットcpuiあるいはワードCPU2のアドレスバス
14,16の一つを選択して、データメモリ4へのアド
レスバス13に接続することが可能である。たとえば、
ビットCPU1から処理要求信号REQが出力されてい
ない場合は、マルチプレクサ65によりビットCPUI
からのアドレスバス14がデータメモリ4へのアドレス
バス15に直接接続されることになる。
The address bus selection circuit 6 includes the fetch register 5
In addition to the output of the bit, the address bus 14 from the CPU
and an address bus 16 from the word CPU 2 are connected. The address bus selection circuit 6, as shown in FIG.
The output of the three word registers 52, 53, 54 of the fetch register 5 or the bit cpui or one of the address buses 14 and 16 of the word CPU 2 is selected according to the processing request signal REQ from the CPU 1, and the address bus to the data memory 4 is selected. It is possible to connect to 13. for example,
When the processing request signal REQ is not output from the bit CPU 1, the multiplexer 65 outputs the bit CPU
The address bus 14 from to the data memory 4 will be directly connected to the address bus 15 to the data memory 4.

データバス選択回路7には、上記のフェッチレジスタ5
の出力の他に、データメモリ4からのデータバス13が
接続される。データバス選択回路7は5つのゲート回路
71.72.73,74゜75からなり、アドレスデコ
ーダ回路8からの選択信号C83,C84,CS5.C
36に従ってフェッチレジスタ5の4つのワードレジス
タ51〜54の出力又はデータメモリ4からのデータバ
ス13のいずれか一つを選択してワードCPUIのデー
タバス17に接続することが可能である。
The data bus selection circuit 7 includes the fetch register 5 mentioned above.
In addition to the output of , a data bus 13 from data memory 4 is connected. The data bus selection circuit 7 consists of five gate circuits 71, 72, 73, 74° 75, and receives selection signals C83, C84, CS5 . C
36, it is possible to select any one of the outputs of the four word registers 51-54 of the fetch register 5 or the data bus 13 from the data memory 4 and connect it to the data bus 17 of the word CPUI.

アドレスデコーダ回路8には、ビットCPUIからの処
理要求信号線18及びワードCI) U 1からのアド
レスバス16が接続されている。第3図に示す様に、ア
ドレスデコーダ回路8はデコード回路81との2つのN
ANDゲート82.83からなり、ビットCPU1から
の処理要求18号線18の信号REQが出力されている
場合にワードCPU2からのアドレスバス16のデータ
をデコードして、各層の選択信号C8O〜C36を出力
する。各選択信号C3O−C36によりデータバス選択
回路7及びアドレスバス選択回路6が開閉されることは
前述のとおりである。
A processing request signal line 18 from the bit CPUI and an address bus 16 from the word CI) U1 are connected to the address decoder circuit 8. As shown in FIG. 3, the address decoder circuit 8 and the decoding circuit 81
It consists of AND gates 82 and 83, and when the signal REQ on the processing request line 18 from the bit CPU 1 is output, it decodes the data on the address bus 16 from the word CPU 2 and outputs the selection signals C8O to C36 for each layer. do. As described above, the data bus selection circuit 7 and the address bus selection circuit 6 are opened and closed by each selection signal C3O-C36.

ビットCPUIとワードCPU2とは処理要求信号線1
8により接続され、ビットCPULから処理要求信号R
EQを出力することによりワードCPU2の処理が開始
され、ワードCPU2から処理完了の信号を返すことに
よりビットCPUIの処理が再開される。
Bit CPUI and word CPU2 are processing request signal line 1
8, and the processing request signal R is connected from the bit CPUUL.
By outputting EQ, processing by the word CPU 2 is started, and by returning a processing completion signal from the word CPU 2, processing by the bit CPUI is restarted.

第4図はビットCPLJIでの処理を示すフローチャー
トである。
FIG. 4 is a flowchart showing the processing at bit CPLJI.

ビットCPUIの処理100が開始されると、ステップ
101ではシーケンスプログラムメモリ3から命令語を
読出す。次に、ステップ102で、その命令語の解読を
行う0次に、ステップ103で、その命令語がAND、
OR論理等のビット演算を行う基本命令であるか、数値
計算等のワード毎の並列演算を行う応用命令であるかを
判別する。
When the bit CPUI process 100 is started, an instruction word is read from the sequence program memory 3 in step 101. Next, in step 102, the instruction word is decoded.Next, in step 103, the instruction word is AND,
It is determined whether the instruction is a basic instruction that performs bit operations such as OR logic, or an applied instruction that performs word-by-word parallel operations such as numerical calculations.

基本命令であればステップ104に進み、当該命令の処
理を実行して処理を終了し、再びステップ101に戻る
。一方、応用命令であればステップ105に進む、ステ
ップ105では、ワードCPU2に処理要求信号REQ
を出力する。そして、ステップ106でワードCPU2
から処理完了の信号が返されるまで待ち、処理完了の信
号が返されれば処理を終了してステップ101に戻る。
If it is a basic command, the process advances to step 104, executes the process of the command, ends the process, and returns to step 101 again. On the other hand, if it is an application command, the process advances to step 105. In step 105, the processing request signal REQ is sent to the word CPU 2.
Output. Then, in step 106, the word CPU2
The process waits until a process completion signal is returned from , and if the process completion signal is returned, the process is terminated and the process returns to step 101 .

第5図はワードCPU2での処理を示すフローチャート
である。
FIG. 5 is a flowchart showing the processing by the word CPU 2.

ビットCPUIから処理要求信号RF、 Qが出力され
ると、ワードCPU2の処理200が開始される。まず
、ステップ201ではフェッチレジスタ5からオペコー
ドを読出す、これは、アドレスバス16に特定のアドレ
スを出力することにより、アドレスデコーダ回路8に選
択信号C86を出力させてデータバス選択回路7のゲー
ト回路71を開き、フェッチレジスタ5のオペコード部
が記憶されたワードレジスタ51の内容をデータバス1
7に出力させてオペコードを読出すのである。
When the processing request signals RF and Q are output from the bit CPUI, the processing 200 of the word CPU 2 is started. First, in step 201, an operation code is read from the fetch register 5. This is done by outputting a specific address to the address bus 16, which causes the address decoder circuit 8 to output a selection signal C86, and to the gate circuit of the data bus selection circuit 7. 71 and transfers the contents of the word register 51 in which the opcode part of the fetch register 5 is stored to the data bus 1.
7 to read out the operation code.

次に、ステップ202では、オペコードの内容から次に
引続くオペランドがデータメモリ4のアドレスを指定す
る間接指定の命令か、オペランド自体が演算の対象とな
る定数を示している直接指定の命令かを判別する。
Next, in step 202, it is determined from the contents of the opcode whether the next operand is an indirect specification instruction that specifies the address of the data memory 4, or a direct specification instruction where the operand itself indicates a constant to be operated on. Discern.

間接指定の命令であれば、ステップ203に進み、オペ
ランド部で指定されたデータメモリ4の内容を読込み、
ワードCPU2の内部レジスタに収容する。たとえば、
今回の応用命令が加算命令(ADD、OPl、OF2,
0P3)であったとする。この命令ADDは、0■)1
で指定されるメモリアドレスの内容と、OP 2で指定
されるメモリアドレスの内容とを読出して加算し、その
結果をOF2で指定されるメモリアドレスに収容しなさ
いという命令である。当該加算命令のオペコードADD
を解読したワードCP U 2は、ステップ203で特
定のアドレスをアドレスバス16に出力し、アドレスデ
コーダ回f88に選択信号C82を出力させてアドレス
バス選択回路6のゲート回路61及びマルチプレクサ6
4.65を開くことにより、フェッチレジスタ5の第1
オペランド部が記憶されたワードレジスタ52の内容O
PIをデータメモリ4へのアドレスバス15に出力する
If the instruction is an indirect specification, the process advances to step 203, reads the contents of the data memory 4 specified by the operand part, and
The word is stored in the internal register of CPU2. for example,
The application instructions this time are addition instructions (ADD, OPl, OF2,
0P3). This command ADD is 0■)1
This is an instruction to read and add the contents of the memory address specified by OP2 and the contents of the memory address specified by OP2, and store the result in the memory address specified by OF2. Opcode ADD of the addition instruction
The word CPU 2 decoded outputs a specific address to the address bus 16 in step 203, causes the address decoder circuit f88 to output a selection signal C82, and the gate circuit 61 of the address bus selection circuit 6 and the multiplexer 6
4.65, the first of fetch register 5
Contents of the word register 52 in which the operand part is stored O
Output PI to address bus 15 to data memory 4.

この結果、データメモリ4は当該アドレスOPIのデー
タをデータバス13に出力し、ワードCPU2はデータ
バス選択回路7を経由してそのデータを読み込む、同様
にしてワードCPU2はアドレスバス16に出力する特
定のアドレスを順次変更し、フェッチレジスタ5のワー
ドレジスタ53の内容OP2をメモリアドレスとするデ
ータメモリ4の内容を読込む、そして、ステップ205
で演算処理(加算)を行い、その結果をデータバス17
に出力する。同時に、アドレスバス16に特定のアドレ
スを出力することによりアドレスバス選択回路6のゲー
ト回路63を開き、ワードレジスタ54に記憶されたオ
ペランドOP3の内容をデータメモリ4へのアドレスバ
ス15に出力してメモリアドレスを指定し、当該アドレ
ス(OP 3 )に演算結果を収容する。
As a result, the data memory 4 outputs the data of the address OPI to the data bus 13, and the word CPU 2 reads the data via the data bus selection circuit 7. Similarly, the word CPU 2 outputs the data of the address OPI to the address bus 16. The contents of the data memory 4 whose memory address is the contents OP2 of the word register 53 of the fetch register 5 are read in step 205.
performs arithmetic processing (addition) and sends the result to the data bus 17.
Output to. At the same time, the gate circuit 63 of the address bus selection circuit 6 is opened by outputting a specific address to the address bus 16, and the contents of the operand OP3 stored in the word register 54 are output to the address bus 15 to the data memory 4. A memory address is specified and the calculation result is stored in the address (OP 3 ).

このように、応用命令がオペランドを間接指定する命令
であっても、ワードCPU2はそのオペランドの内容o
P1.OP2.OP3を知ることなく、特定のアドレス
を機械的に出力してアドレスデコーダ回路8を作用させ
ることにより処理を行うことができ、応用命令の処理を
高速化することができる。
In this way, even if the application instruction is an instruction that indirectly specifies an operand, the word CPU2 is
P1. OP2. Processing can be performed by mechanically outputting a specific address and activating the address decoder circuit 8 without knowing OP3, thereby speeding up the processing of application instructions.

一方、ステップ201で、当該命令がオペランド自体が
演算対象となる定数を示している直接指定の命令であれ
ば、ステップ204に進み、特定のアドレスをアドレス
バス16に出力して当該オペランドをフェッチレジスタ
5から読み出し、ステップ205で演算処理を行う、 そして、演算処理が完了すればステップ206に進み、
処理完了信号をビットCPUIに返して今回のワードC
PU2の処理を終了する9、処理完了信号により、ビッ
トCPUIはステップ106の待機状態からステップ1
01に戻り、次の命令の処理を開始する。
On the other hand, in step 201, if the instruction is a direct specification instruction in which the operand itself indicates a constant to be operated on, the process proceeds to step 204, outputs a specific address to the address bus 16, and stores the operand in the fetch register. 5 and performs arithmetic processing in step 205. When the arithmetic processing is completed, the process proceeds to step 206.
Returns the processing completion signal to the bit CPUI and returns the current word C.
Ending the processing of PU2 9. In response to the processing completion signal, the bit CPU changes from the standby state of step 106 to step 1.
01 and starts processing the next instruction.

上述の様に、ワードCPU2はシーケンスプログラムメ
モリ3を直接読出す必要がなく、また、解読したオペコ
ードの内容に従って特定のアドレスをアドレスバス16
に出力するだけで機械的にオペランドの内容又はオペラ
ンドで指定されるデータメモリ4の内容にアクセスする
ことができ、応用命令の処′埋速度を高めることができ
る。
As mentioned above, the word CPU 2 does not need to directly read the sequence program memory 3, and also reads a specific address from the address bus 16 according to the contents of the decoded opcode.
The contents of the operand or the contents of the data memory 4 designated by the operand can be mechanically accessed by simply outputting the output to the input command, thereby increasing the processing speed of application instructions.

「発明の効果」 以上説明したように本発明は上記の構成を有し、数ワー
ドの容量を有するフェッチレジスタと、アドレスバス及
びデータバスを選択する各バス選択回路とを備えるもの
であるから、応用命令の処理を行うワードCPUが改め
てシーケンスプログラムの内容を読出すことなく処理を
行うことができ。
"Effects of the Invention" As explained above, the present invention has the above configuration and includes a fetch register having a capacity of several words and each bus selection circuit for selecting an address bus and a data bus. The word CPU, which processes application instructions, can perform processing without having to read out the contents of the sequence program again.

ビットCPUとワードCPUとを備えるマルチCPU方
式のシークンスコントローラにおいて、応用命令の処理
を極めて高速化することができるという優れた効果があ
る。
A multi-CPU sequence controller including a bit CPU and a word CPU has the excellent effect of extremely speeding up the processing of application instructions.

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

第1図乃至第5図は本発明の一実施例を示し、第1図は
実施例シーケンスコントローラの基本構成を示すブロッ
ク図、第2図及び第3図は要部の詳#構成を示すブロッ
ク図、第4図及び第5図はそれぞれビットCPU及びワ
ードCPUでの処理を示すフローチャートであり、第6
図は従来装置を示すブロック図である。 111.ビットCPU、  26.、ワードCI) U
、301.シーケンスプログラムメモリ、 410.デ
ータメモリ、  566、フェッチレジスタ、 681
.アドレスバス選択回路、  7.、、データバス選択
回路、 800.アドレスデコーダ回路、  11,1
4゜15.16.、、アドレスバス、 12.13.1
7゜、6データパス、 18.、、処理要求信号線。 第4図 第5図
1 to 5 show an embodiment of the present invention, FIG. 1 is a block diagram showing the basic configuration of the sequence controller of the embodiment, and FIGS. 2 and 3 are block diagrams showing the detailed configuration of the main parts. 4 and 5 are flowcharts showing processing in the bit CPU and word CPU, respectively.
The figure is a block diagram showing a conventional device. 111. Bit CPU, 26. , word CI) U
, 301. Sequence program memory, 410. data memory, 566, fetch register, 681
.. Address bus selection circuit, 7. ,,data bus selection circuit, 800. Address decoder circuit, 11,1
4゜15.16. ,,address bus, 12.13.1
7°, 6 data paths, 18. ,,processing request signal line. Figure 4 Figure 5

Claims (1)

【特許請求の範囲】 主にビット演算を行うビットCPUと、数値演算等を行
うワードCPUとを備えたマルチCPU方式のシーケン
スコントローラにおいて、 シーケンスプログラムメモリとビットCPUとを接続す
るデータバスのデータを、少なくとも一つの応用命令を
構成するワード数だけ常時一時記憶するフェッチレジス
タと、 前記フェッチレジスタの出力又はデータメモリからのデ
ータバスのいずれかを選択してワードCPUのデータバ
スに接続するデータバス選択回路と、 前記フェッチレジスタの出力、ビットCPUからのアド
レスバス、又はワードCPUからのアドレスバスのいず
れか一つを選択してデータメモリのアドレスバスに接続
するアドレスバス選択回路と、 ワードCPUからのアドレスバスのデータ及びビットC
PUからの処理要求信号に従って前記データバス選択回
路及びアドレスバス選択回路に選択信号を出力するアド
レスデコーダ回路と、を備えることを特徴とするシーケ
ンスコントローラ。
[Claims] In a multi-CPU sequence controller that includes a bit CPU that mainly performs bit operations and a word CPU that performs numerical operations, data on a data bus that connects the sequence program memory and the bit CPU is provided. , a fetch register that constantly temporarily stores the number of words constituting at least one application instruction, and a data bus selection that selects either the output of the fetch register or the data bus from the data memory and connects it to the data bus of the word CPU. an address bus selection circuit that selects one of the output of the fetch register, the address bus from the bit CPU, or the address bus from the word CPU and connects it to the address bus of the data memory; Address bus data and bit C
A sequence controller comprising: an address decoder circuit that outputs a selection signal to the data bus selection circuit and the address bus selection circuit in accordance with a processing request signal from a PU.
JP27455087A 1987-10-29 1987-10-29 Sequence controller Expired - Lifetime JP2619425B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27455087A JP2619425B2 (en) 1987-10-29 1987-10-29 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27455087A JP2619425B2 (en) 1987-10-29 1987-10-29 Sequence controller

Publications (2)

Publication Number Publication Date
JPH01116702A true JPH01116702A (en) 1989-05-09
JP2619425B2 JP2619425B2 (en) 1997-06-11

Family

ID=17543283

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27455087A Expired - Lifetime JP2619425B2 (en) 1987-10-29 1987-10-29 Sequence controller

Country Status (1)

Country Link
JP (1) JP2619425B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03196204A (en) * 1989-12-26 1991-08-27 Hitachi Ltd Programmable controller
WO1991015815A1 (en) * 1990-04-05 1991-10-17 Fanuc Ltd System for executing instruction of pc
JPH0519820A (en) * 1991-07-15 1993-01-29 Matsushita Electric Works Ltd Programmable controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03196204A (en) * 1989-12-26 1991-08-27 Hitachi Ltd Programmable controller
WO1991015815A1 (en) * 1990-04-05 1991-10-17 Fanuc Ltd System for executing instruction of pc
JPH0519820A (en) * 1991-07-15 1993-01-29 Matsushita Electric Works Ltd Programmable controller

Also Published As

Publication number Publication date
JP2619425B2 (en) 1997-06-11

Similar Documents

Publication Publication Date Title
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
US4926318A (en) Micro processor capable of being connected with a coprocessor
US4344130A (en) Apparatus to execute DMA transfer between computing devices using a block move instruction
US4967339A (en) Operation control apparatus for a processor having a plurality of arithmetic devices
JPH02284258A (en) Writable logic controller comrising function block processor and bit processor
JPH01116702A (en) Sequence controller
JP2680828B2 (en) Digital device
EP0136699B1 (en) Programmable controller
JPH0227696B2 (en) JOHOSHORISOCHI
JPS6330658B2 (en)
JP2622026B2 (en) Register writing control method in central processing unit
JPS6136256B2 (en)
JPH06139071A (en) Parallel computers
JPS60193046A (en) Detecting system for instruction exception
JPH0259495B2 (en)
JPS6218934B2 (en)
JPS6218933B2 (en)
JPH03164945A (en) Data processor
JPS62194545A (en) Program rewriting device for data flow type computer
JPS63629A (en) Data processing system
JPS63279323A (en) Address designating system for central processing unit
JPS63829B2 (en)
JPS63129427A (en) Conversion circuit for interruption response logic
JPH05224920A (en) Data processor
JPS60132239A (en) Microprogram controlling circuit

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080311

Year of fee payment: 11