JP2619425B2 - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JP2619425B2
JP2619425B2 JP27455087A JP27455087A JP2619425B2 JP 2619425 B2 JP2619425 B2 JP 2619425B2 JP 27455087 A JP27455087 A JP 27455087A JP 27455087 A JP27455087 A JP 27455087A JP 2619425 B2 JP2619425 B2 JP 2619425B2
Authority
JP
Japan
Prior art keywords
cpu
word
data
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.)
Expired - Lifetime
Application number
JP27455087A
Other languages
Japanese (ja)
Other versions
JPH01116702A (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.)
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

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は工作機械,ロボット等を制御するシーケンス
コントローラに関する。
The present invention relates to a sequence controller for controlling a machine tool, a robot, and the like.

「従来の技術」 シーケンスコントローラではリレー回路図に対応した
AND論理等のビット演算命令を実行することが多いた
め、1ビット毎の論理演算を専門に処理するビットCPU
(処理装置)と、16ビットの1ワード毎の数値計算など
普通のコンピュータ命令を専門に処理するワードCPU
(処理装置)とを備えたマルチCPU方式で構成されたも
のが多い。
"Conventional technology" Sequence controllers support relay circuit diagrams
Bit CPUs that specialize in bit-by-bit logical operations because they often execute bit operation instructions such as AND logic
(Processing unit) and a word CPU that specializes in processing ordinary computer instructions such as 16-bit word-by-word numerical calculations
(Processing device) in many cases with a multi-CPU system.

従来のマルチCPU方式の装置は、第6図に示す様に、
シーケンスプログラムメモリ3及びデータメモリ4のそ
れぞれのアドレスバス21,23及びデータバス22,24にビッ
トCPU1とワードCPU2とが並列に接続されたものであっ
た。ビット演算等の基本命令を実行するビットCPU1と、
数値計算等の応用命令を実行するワードCPU2とは互いに
処理要求信号線25,26で結ばれている。基本的な制御は
ビットCPU1で行い、ビットCPU1が応用命令を検知した場
合にワードCPU2に処理要求25を出し、ワードCPU2を作動
させていた。このため、処理要求25を受けたワードCPU2
は、実行すべき応用命令が格納されているシーケンスプ
ログラムメモリ3のアドレスをビットCPU1から教えても
らい、改めて当該応用命令をシーケンスプログラムメモ
リ3から読出して処理を行う必要があった。それ故、プ
ログラム命令中に応用命令が介在すると、処理速度が非
常に遅くなるという問題点があった。
As shown in FIG. 6, a conventional multi-CPU system device
The bit CPU 1 and the word CPU 2 are connected in parallel to the address buses 21, 23 and the data buses 22, 24 of the sequence program memory 3 and the data memory 4, respectively. A bit CPU1 for executing a basic instruction such as a bit operation;
The word CPU 2 that executes application instructions such as numerical calculation is connected to each other by processing request signal lines 25 and 26. Basic control was performed by the bit CPU1, and when the bit CPU1 detected an application instruction, a processing request 25 was issued to the word CPU2, and the word CPU2 was operated. For this reason, word CPU2 that received processing request 25
Requires that the address of the sequence program memory 3 in which the application instruction to be executed is stored be notified from the bit CPU 1 and that the application instruction be read from the sequence program memory 3 and processed again. Therefore, if an application instruction is interposed in the program instruction, there is a problem that the processing speed is extremely reduced.

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

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

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

「実施例」 本発明の実施例について図面に従って説明する。第1
図は実施例の基本構成を示すブロック図、第2図及び第
3図は詳細構成を示す要部ブロック図である。
"Example" An example of the present invention will be described with reference to the drawings. First
FIG. 2 is a block diagram showing a basic configuration of the embodiment, and FIGS. 2 and 3 are main block diagrams showing a detailed configuration.

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

シーケンスプログラムメモリ3のデータバス12にはフ
ェッチレジスタ5が接続されている。フェッチレジスタ
5は、第2図に示す様に、4つのレジスタ51,52,53,54
を有し、4ワードの容量を有するレジスタであり、ビッ
トCPU1によりアドレス指定されて読出されたシーケンス
プログラムメモリ3のデータを、過去4回分に渡って常
時記憶している。この4ワードの内容は、読出されたデ
ータ(命令)が応用命令である場合には、命令の種類を
示すオペコード(51)と、命令の対象となる数値(定
数)またはその数値が格納されたデータメモリ4のアド
レスを示す3つのオペランド(52,53,54)からなる。
The fetch register 5 is connected to the data bus 12 of the sequence program memory 3. The fetch register 5 has four registers 51, 52, 53, 54 as shown in FIG.
This is a register having a capacity of 4 words, and constantly stores the data of the sequence program memory 3 which is addressed and read by the bit CPU 1 over the past four times. When the read data (instruction) is an applied instruction, the contents of the four words include an operation code (51) indicating the type of instruction, and a numerical value (constant) or a numerical value to be processed by the instruction. It consists of three operands (52, 53, 54) indicating the address of the data memory 4.

フェッチレジスタ5の出力はアドレスバス選択回路6
及びデータバス選択回路7に接続される。第2図に示す
様に、データバス選択回路7には、フェッチレジスタ5
の全てのワードレジスタ51〜54が接続されているのに対
し、アドレスバス選択回路6には下位3ワードのワード
レジスタ52,53,54しか接続されていない。これは、アド
レスバス選択回路6では3つのオペランド部分しか要し
ないからである。
The output of the fetch register 5 is an address bus selection circuit 6
And a data bus selection circuit 7. As shown in FIG. 2, the data bus selection circuit 7 includes a fetch register 5
Are connected to the address bus selection circuit 6, but only the lower three word registers 52, 53 and 54 are connected. This is because the address bus selection circuit 6 requires only three operand parts.

アドレスバス選択回路6には、上記フェッチレジスタ
5の出力の他に、ビットCPU1からのアドレスバス14及び
ワードCPU2からのアドレスバス16が接続されている。ア
ドレスバス選択回路6は、第2図に示す様に、3つのゲ
ート回路61,62,63と2つのマルチプレクサ64,65からな
り、アドレスデコーダ回路8からの選択信号CS0,CS1,CS
2及びビットCPU1からの処理要求信号▲▼に従っ
てフェッチレジスタ5の3つのワードレジスタ52,53,54
の出力又はビットCPU1あるいはワードCPU2のアドレスバ
ス14,16の一つを選択して、データメモリ4へのアドレ
スバス13に接続することが可能である。たとえば、ビッ
トCPU1から処理要求信号▲▲が出力されていない
場合は、マルチプレクサ65によりビットCPU1からのアド
レスバス14がデータメモリ4へのアドレスバス15に直接
接続されることになる。
The address bus selection circuit 6 is connected to an address bus 14 from the bit CPU 1 and an address bus 16 from the word CPU 2 in addition to the output of the fetch register 5. As shown in FIG. 2, the address bus selection circuit 6 comprises three gate circuits 61, 62, 63 and two multiplexers 64, 65, and the selection signals CS0, CS1, CS from the address decoder circuit 8.
2 and three word registers 52, 53, 54 of the fetch register 5 in accordance with the processing request signal ▲ ▼ from the CPU1.
Or one of the address buses 14 and 16 of the bit CPU 1 or the word CPU 2 can be connected to the address bus 13 to the data memory 4. For example, when the processing request signal ▲ is not output from the bit CPU 1, the address bus 14 from the bit CPU 1 is directly connected to the address bus 15 to the data memory 4 by the multiplexer 65.

データバス選択回路7には、上記のフェッチレジスタ
5の出力の他に、データメモリ4からのデータバス13が
接続される。データバス選択回路7は5つのゲート回路
71,72,73,74,75からなり、アドレスデコード回路8から
の選択信号CS3,CS4,CS5,CS6に従ってフェッチレジスタ
5の4つのワードレジスタ51〜54の出力又はデータメモ
リ4からのデータバス13のいずれか一つを選択してワー
ドCPU1のデータバス17に接続することが可能である。
The data bus selection circuit 7 is connected to a data bus 13 from the data memory 4 in addition to the output of the fetch register 5. The data bus selection circuit 7 has five gate circuits
71, 72, 73, 74 and 75. The outputs of the four word registers 51 to 54 of the fetch register 5 or the data bus 13 from the data memory 4 in accordance with the selection signals CS3, CS4, CS5 and CS6 from the address decode circuit 8. Can be selected and connected to the data bus 17 of the word CPU1.

アドレスデコーダ回路8には、ビットCPU1からの処理
要求信号線18及びワードCPU1からのアドレスバス16が接
続されている。第3図に示す様に、アドレスデコーダ回
路8はデコード回路81との2つのNANDゲート82,83から
なり、ビットCPU1からの処理要求信号線18の信号▲
▼が出力されている場合にワードCPU2からのアドレス
バス16のデータをデコードして、各種の選択信号CS0〜C
S6を出力する。各選択信号CS0〜CS6によりデータバス選
択回路7及びアドレスバス選択回路6が開閉されること
は前述のとおりである。
A processing request signal line 18 from the bit CPU 1 and an address bus 16 from the word CPU 1 are connected to the address decoder circuit 8. As shown in FIG. 3, the address decoder circuit 8 is composed of two NAND gates 82 and 83 with a decode circuit 81.
When ▼ is output, the data on the address bus 16 from the word CPU 2 is decoded and various selection signals CS0 to C
Outputs S6. As described above, the data bus selection circuit 7 and the address bus selection circuit 6 are opened and closed by the selection signals CS0 to CS6.

ビットCPU1とワードCPU2とは処理要求信号線18により
接続され、ビットCPU1から処理要求信号▲▼を出
力することによりワードCPU2の処理が開始され、ワード
CPU2から処理完了の信号を返すことによりビットCPU1の
処理が再開される。
The bit CPU1 and the word CPU2 are connected by a processing request signal line 18, and the processing of the word CPU2 is started by outputting a processing request signal
The processing of the bit CPU1 is restarted by returning a processing completion signal from the CPU2.

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

ビットCPU1の処理100が開始されると、ステップ101で
はシーケンスプログラムメモリ3から命令語を読出す。
次に、ステップ102で、その命令語の解読を行う。次
に、ステップ103で、その命令語がAND,OR論理等のビッ
ト演算を行う基本命令であるか、数値計算等のワード毎
の並列演算を行う応用命令であるかを判別する。基本命
令であればステップ104に進み、当該命令の処理を実行
して処理を終了し、再びステップ101に戻る。一方、応
用命令であればステップ105に進む。ステップ105では、
ワードCPU2に処理要求信号▲▼を出力する。そし
て、ステップ106でワードCPU2から処理完了の信号が返
されるまで待ち、処理完了の信号が返されれば処理を終
了してステップ101に戻る。
When the process 100 of the bit CPU 1 is started, an instruction is read from the sequence program memory 3 in step 101.
Next, in step 102, the command is decoded. Next, in step 103, it is determined whether the instruction word is a basic instruction for performing a bit operation such as AND or OR logic or an application instruction for performing a parallel operation for each word such as a numerical calculation. If it is a basic command, the process proceeds 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 instruction, the process proceeds to step 105. In step 105,
Outputs a processing request signal ▲ ▼ to word CPU2. Then, in step 106, the process waits until a signal indicating the completion of the process is returned from the word CPU2.

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

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

次に、ステップ202では、オペコードの内容から次に
引続くオペランドがデータメモリ4のアドレスを指定す
る間接指定の命令か、オペランド自体が演算の対象とな
る定数を示している直接指定の命令かを判別する。
Next, in step 202, it is determined whether the operand following the instruction code is an indirectly-specified instruction specifying the address of the data memory 4 or a directly-specified instruction indicating the constant to be operated. Determine.

間接指定の命令であれば、ステップ203に進み、オペ
ランド部で指定されたデータメモリ4の内容を読込み、
ワードCPU2の内部レジスタに収容する。たとえば、今回
の応用命令が加算命令(ADD,OP1,OP2,OP3)であったと
する。この命令ADDは、OP1で指定されるメモリアドレス
の内容と、OP2で指定されるメモリアドレスの内容とを
読出して加算し、その結果をOP3で指定されるメモリア
ドレスに収容しなさいという命令である。当該加算命令
のオペコードADDを解読したワードCPU2は、ステップ203
で特定のアドレスをアドレスバス16に出力し、アドレス
デコーダ回路8に選択信号▲▼を出力させてアド
レスバス選択回路6のゲート回路61及びマルチプレクサ
64,65を開くことにより、フェッチレジスタ5の第1オ
ペランド部が記憶されたワードレジスタ52の内容OP1を
データメモリ4へのアドレスバス15に出力する。この結
果、データメモリ4は当該アドレスOP1のデータをデー
タバス13に出力し、ワードCPU2はデータバス選択回路7
を経由してそのデータを読み込む。同様にしてワードCP
U2はアドレスバス16に出力する特定のアドレスを順次変
更し、フェッチレジスタ5のワードレジスタ53の内容OP
2をメモリアドレスとするデータメモリ4の内容を読込
む。そして、ステップ205で演算処理(加算)を行い、
その結果をデータバス17に出力する。同時に、アドレス
バス16に特定のアドレスを出力することによりアドレス
バス選択回路6のゲート回路63を開き、ワードレジスタ
54に記憶されたオペランドOP3の内容をデータメモリ4
へのアドレスバス15に出力してメモリアドレスを指定
し、当該アドレス(OP3)に演算結果を収容する。
If the instruction is an indirect designation, the process proceeds to step 203, where the contents of the data memory 4 designated by the operand portion are read,
Stored in the internal register of word CPU2. For example, it is assumed that the application instruction this time is an addition instruction (ADD, OP1, OP2, OP3). This instruction ADD reads and adds the contents of the memory address specified by OP1 and the contents of the memory address specified by OP2, and stores the result in the memory address specified by OP3. . The word CPU2 that has decoded the operation code ADD of the addition instruction,
Outputs a specific address to the address bus 16 and causes the address decoder circuit 8 to output the selection signal ▲ ▼, so that the gate circuit 61 of the address bus selection circuit 6 and the multiplexer are output.
By opening 64 and 65, the contents OP1 of the word register 52 in which the first operand portion of the fetch register 5 is stored are output to the address bus 15 to the data memory 4. As a result, the data memory 4 outputs the data at the address OP1 to the data bus 13, and the word CPU 2 outputs the data at the data bus selection circuit 7.
Read that data via. Similarly, the word CP
U2 sequentially changes a specific address to be output to the address bus 16, and reads the contents OP of the word register 53 of the fetch register 5.
The contents of the data memory 4 having the memory address 2 are read. Then, in step 205, the arithmetic processing (addition) is performed.
The result is output to the data bus 17. At the same time, by outputting a specific address to the address bus 16, the gate circuit 63 of the address bus selection circuit 6 is opened, and the word register
The contents of operand OP3 stored in 54 are stored in data memory 4
To the address bus 15 to specify a memory address, and store the operation result in the address (OP3).

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

一方、ステップ201で、当該命令がオペランド自体が
演算対象となる定数を示している直接指定の命令であれ
ば、ステップ204に進み、特定のアドレスをアドレスバ
ス16に出力して当該オペランドをフェッチレジスタ5か
ら読み出し、ステップ205で演算処理を行う。
On the other hand, in step 201, if the instruction is a directly specified instruction in which the operand itself indicates a constant to be operated, the process proceeds to step 204, where a specific address is output to the address bus 16 and the operand is stored in the fetch register. 5 and the arithmetic processing is performed in step 205.

そして、演算処理が完了すればステップ206に進み、
処理完了信号をビットCPU1に返して今回のワードCPU2の
処理を終了する。処理完了信号により、ビットCPU1はス
テップ106の待機状態からステップ101に戻り、次の命令
の処理を開始する。
When the calculation processing is completed, the process proceeds to step 206,
The processing completion signal is returned to the bit CPU1, and the current processing of the word CPU2 ends. In response to the processing completion signal, the bit CPU 1 returns from the standby state of step 106 to step 101 and starts processing the next instruction.

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

「発明の効果」 以上説明したように本発明は上記の構成を有し、数ワ
ードの容量を有するフェッチレジスタと、アドレスバス
及びデータバスを選択する各バス選択回路とを備えるも
のであるから、応用命令の処理を行うワードCPUが改め
てシーケンスプログラムの内容を読出すことなく処理を
行うことができ、ビットCPUとワードCPUとを備えるマル
チCPU方式のシーケンスコントローラにおいて、応用命
令の処理を極めて高速化することができるという優れた
効果がある。
[Effects of the Invention] As described 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 that processes application instructions can perform processing without reading the contents of the sequence program anew, and the processing speed of application instructions is extremely high in a multi-CPU sequence controller that has a bit CPU and a word CPU. There is an excellent effect that can be.

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

第1図乃至第5図は本発明の一実施例を示し、第1図は
実施例シーケンスコントローラの基本構成を示すブロッ
ク図、第2図及び第3図は要部の詳細構成を示すブロッ
ク図、第4図及び第5図はそれぞれビットCPU及びワー
ドCPUでの処理を示すフローチャートであり、第6図は
従来装置を示すブロック図である。 1……ビットCPU、2……ワードCPU、3……シーケンス
プログラムメモリ、4……データメモリ、5……フェッ
チレジスタ、6……アドレスバス選択回路、7……デー
タバス選択回路、8……アドレスデコーダ回路、11,14,
15,16……アドレスバス、12,13,17……データバス、18
……処理要求信号線。
1 to 5 show an embodiment of the present invention, FIG. 1 is a block diagram showing a basic configuration of a sequence controller of the embodiment, and FIGS. 2 and 3 are block diagrams showing a detailed configuration of main parts. 4 and 5 are flowcharts showing the processing in the bit CPU and the word CPU, respectively, and FIG. 6 is a block diagram showing a conventional apparatus. 1 ... bit CPU, 2 ... word CPU, 3 ... sequence program memory, 4 ... data memory, 5 ... fetch register, 6 ... address bus selection circuit, 7 ... data bus selection circuit, 8 ... Address decoder circuit, 11, 14,
15,16 …… Address bus, 12,13,17 …… Data bus, 18
... Processing request signal line.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】主にビット演算を行うビットCPUと、数値
演算等を行うワードCPUとを備えたマルチCPU方式のシー
ケンスコントローラにおいて、 シーケンスプログラムメモリとビットCPUとを接続する
データバスのデータを、少なくとも一つの応用命令を構
成するワード数だけ常時一時記憶するフェッチレジスタ
と、 前記フェッチレジスタの出力又はデータメモリからのデ
ータバスのいずれかを選択してワードCPUのデータバス
に接続するデータバス選択回路と、 前記フェッチレジスタの出力、ビットCPUからのアドレ
スバス、又はワードCPUからのアドレスバスのいずれか
一つを選択してデータメモリのアドレスバスに接続する
アドレスバス選択回路と、 ワードCPUからのアドレスバスのデータ及びビットCPUか
らの処理要求信号に従って前記データバス選択回路及び
アドレスバス選択回路に選択信号を出力するアドレスデ
コーダ回路と、 を備えることを特徴とするシーケンスコントローラ。
1. A multi-CPU sequence controller mainly comprising a bit CPU for performing a bit operation and a word CPU for performing a numerical operation, etc., wherein data on a data bus connecting a sequence program memory and the bit CPU is A fetch register for temporarily storing at least the number of words constituting at least one application instruction, and a data bus selection circuit for selecting either the output of the fetch register or the data bus from the data memory and connecting to the data bus of the word CPU An address bus selection circuit for selecting any one of the output of the fetch register, the address bus from the bit CPU, and the address bus from the word CPU and connecting to the address bus of the data memory; and an address from the word CPU. The data bus selection according to the bus data and the processing request signal from the bit CPU. And an address decoder circuit for outputting a selection signal to the selection circuit and the address bus selection circuit.
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 JPH01116702A (en) 1989-05-09
JP2619425B2 true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2529429B2 (en) * 1989-12-26 1996-08-28 株式会社日立製作所 Programmable controller
JPH03288906A (en) * 1990-04-05 1991-12-19 Fanuc Ltd Instruction executing system for pc
JP2607319B2 (en) * 1991-07-15 1997-05-07 松下電工株式会社 Programmable controller

Also Published As

Publication number Publication date
JPH01116702A (en) 1989-05-09

Similar Documents

Publication Publication Date Title
US4325116A (en) Parallel storage access by multiprocessors
US4648034A (en) Busy signal interface between master and slave processors in a computer system
US4835733A (en) Programmable access memory
US4794524A (en) Pipelined single chip microprocessor having on-chip cache and on-chip memory management unit
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
US4520441A (en) Data processing system
US4926318A (en) Micro processor capable of being connected with a coprocessor
JPH0248931B2 (en)
US5119484A (en) Selections between alternate control word and current instruction generated control word for alu in respond to alu output and current instruction
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
GB2024475A (en) Memory access controller
JPH0527971A (en) Information processor
US4592010A (en) Memory-programmable controller
US4314332A (en) Memory control system
JP2619425B2 (en) Sequence controller
JP2680828B2 (en) Digital device
JPS60225262A (en) Pipeline processor having double cash memory
US4853889A (en) Arrangement and method for speeding the operation of branch instructions
US5893928A (en) Data movement apparatus and method
JP3507193B2 (en) Load / store instruction processor
KR0153537B1 (en) Signal processing structure preselecting memory address data
JPS59172044A (en) Instruction control system
JPS58114250A (en) Common microprocessor
JPS6221131B2 (en)
JPS60193046A (en) Detecting system for instruction exception

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 (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080311

Year of fee payment: 11