[go: up one dir, main page]

JPH01223505A - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPH01223505A
JPH01223505A JP4890688A JP4890688A JPH01223505A JP H01223505 A JPH01223505 A JP H01223505A JP 4890688 A JP4890688 A JP 4890688A JP 4890688 A JP4890688 A JP 4890688A JP H01223505 A JPH01223505 A JP H01223505A
Authority
JP
Japan
Prior art keywords
sequence
microcomputer
processor
bit
program memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4890688A
Other languages
Japanese (ja)
Inventor
Shinya Kominami
小南 真也
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP4890688A priority Critical patent/JPH01223505A/en
Publication of JPH01223505A publication Critical patent/JPH01223505A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To immediately execute the sequence processing of a sequence controller by reading and decoding contents of a sequence extended memory of a program memory before execution by a multibit processor. CONSTITUTION:An 8-bit microcomputer 8 reads out and decodes a first sequence extension instruction in a microcomputer memory 9 at the time of the start of execution of the sequence processing and is held. When a sequence extension instruction is read out from a program memory 3, the control right of an I/O 6 on a microcomputer bus 4 is transferred from a one-bit processor 1 to the microcomputer 8 by a switching circuit 7, and the held microcomputer 8 immediately executes the processing of the first sequence extension instruction for the I/O 6. The microcomputer 8 waives the control right, and the control right is transferred to the processor 1 by the circuit 7. Meanwhile, the microcomputer 8 which waives the control right reads out and decodes a second sequence extension instruction in the memory 9, and the microcomputer 8 is held till the control right is transferred to it by the circuit 7.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は1ビットプロセッサとマルチビットプロセッサ
(一般には8ビットプロセッサ又は16ビツトグロセツ
サ)とを組み合わせてなるシーケンスコントローラに関
するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a sequence controller comprising a combination of a 1-bit processor and a multi-bit processor (generally an 8-bit processor or a 16-bit processor).

従来の技術 1ビットプロセッサを用いたシーケンスコントローラは
、演算命令の処理や複雑な判断を苦手とする一方、マル
チビットプロセッサを用いたシーケンスコントローラは
、シーケンス命令実行のためのステップ数が1ビットプ
ロセッサの場合の2〜3倍となシ、処理時間が長くかか
るという問題がある。
Conventional technology Sequence controllers using 1-bit processors are not good at processing arithmetic instructions or making complex decisions, while sequence controllers using multi-bit processors have a higher number of steps to execute sequence instructions than 1-bit processors. There is a problem in that the processing time is two to three times longer than in the conventional case.

そこで両者の長所を併せ持つように、1ピットプロセッ
サとマルチビットプロセッサとを組み合わせてシーケン
スコントローラを構成することが試みられている。第4
図はこのようなシーケンスコントローラの従来例を示す
Therefore, attempts have been made to configure a sequence controller by combining a 1-bit processor and a multi-bit processor so as to combine the advantages of both. Fourth
The figure shows a conventional example of such a sequence controller.

この従来例は、1ビットプロセッサ11とマルチビット
プロセッサ12とを組み合わせ、プログラムメモリ13
からの命令によって、通常は1ビットプロセッサ11が
シーケンス基本処理を実行し、プログラムメモリ13の
命令がシーケンス拡張命令である場合のみ、1ビットプ
ロセッサ11はマルチビットプロセッサ12へ割込みを
かける(割込み要求ライン10)とともに、マイコンバ
ス14上の工1016の制御権を解放し、マルチビット
プロセッサ12がシーケンス拡張命令処理を終えるまで
待機するように構成されている。なお、16は1ビット
プロセッサ11の処理結果をマイコンバス14上のデー
タと重畳するデータ重畳回路、17はシーケンス命令に
よってマイコンバス14上のl1016を処理するプロ
セッサ11.12を切シ換える切り換え回路である。
This conventional example combines a 1-bit processor 11 and a multi-bit processor 12, and has a program memory 13.
Normally, the 1-bit processor 11 executes sequence basic processing according to instructions from 10), the controller is configured to release control of the processor 1016 on the microcomputer bus 14 and wait until the multi-bit processor 12 finishes processing the sequence extension instruction. Note that 16 is a data superimposition circuit that superimposes the processing result of the 1-bit processor 11 on the data on the microcomputer bus 14, and 17 is a switching circuit that switches the processors 11 and 12 that process l1016 on the microcomputer bus 14 according to a sequence instruction. be.

発明が解決しようとする課題 ところで上記従来例によると、プログラムメモリ13の
命令がシーケンス拡張命令である場合、1ビットプロセ
ッサ11よシ割込みをかけられたマルチビットプロセッ
サ12は、前記プログラムメモリ13のシーケンス拡張
命令を読み出し、その内容の解読を行った後にマイコン
バス14上のl101eを制御せねばならず、命令読み
取りと解読のために余分の時間がかかるという問題があ
った。
Problems to be Solved by the Invention According to the above-mentioned conventional example, when the instruction in the program memory 13 is a sequence extension instruction, the multi-bit processor 12 that is interrupted by the 1-bit processor 11 executes the sequence in the program memory 13. After reading the extended instruction and decoding its contents, the l101e on the microcomputer bus 14 must be controlled, which poses a problem in that extra time is required to read and decode the instruction.

課題を解決するための手段 本発明は上記問題点を解決するため、シーケンスプログ
ラムを格納するプログラムメモリと、このプログラムメ
モリからの命令によってシーケンス基本処理を実行する
1ビットプロセッサと、1ビットプロセッサ1の処理結
果をマイコンバス上のデータと重畳するデータ重畳回路
と、このデータ重畳回路によって処理されるマイコンバ
ス4上のI/Oと、前記プログラムメモリの命令がシー
ケンス拡張命令の場合にシーケンス拡張処理を実行する
マルチビットプロセッサと、前記プログラムメモリの命
令によってシーケンス処理を行うプロセッサを切り換え
る手段とからなり、マルチビットプロセッサがプログラ
ムメモリのシーケンス拡張命令の内容を実行前に先読み
と解読をしておキ、フロセッサ切換手段によってシーケ
ンス処理の制御権がマルチビットプロセッサに切す換ワ
った際に、マルチビットプロセッサがプログラムメモリ
のシーケンス拡張命令の命令読み出しと解読にかかる時
間をなくすように構成したことを特徴とする。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention has a program memory for storing a sequence program, a 1-bit processor that executes sequence basic processing according to instructions from the program memory, and a 1-bit processor 1. A data superimposition circuit that superimposes the processing result with data on the microcomputer bus, I/O on the microcomputer bus 4 processed by the data superimposition circuit, and sequence extension processing when the instruction in the program memory is a sequence extension instruction. The method comprises a multi-bit processor for execution, and means for switching processors for performing sequence processing according to the instructions in the program memory, and the multi-bit processor prereads and decodes the contents of the sequence extension instructions in the program memory before executing them. The present invention is characterized in that the multi-bit processor is configured to eliminate the time required for reading and decoding sequence extension instructions from the program memory when the control of sequence processing is switched to the multi-bit processor by the processor switching means. shall be.

作   用 上記構成によれば、プログラムメモリの内容がシーケン
ス拡張命の場合に、プロセッサを切り換える手段によっ
てシーケンス処理の制御権が1ビットプロセッサからマ
ルチビットプロセッサに移されると、マルチビットプロ
セッサは、シーケンス拡張命令の読み出しと解読の時間
を必要とせず、即時にマイコンバス上のIloに対し、
シーケンス処理を施すことができる。
Effect According to the above configuration, when the content of the program memory is a sequence extension instruction, when the control right of sequence processing is transferred from the 1-bit processor to the multi-bit processor by the means for switching processors, the multi-bit processor It does not require time to read and decode instructions, and can be sent to Ilo on the microcontroller bus immediately.
Sequence processing can be performed.

実施例 以下、本発明の一実施例を第1図を参照しながら説明す
る。第1図の実施例は8ビットプロセッサを備えた汎用
のマイコン8と1ビットプロセッサ1とを組み合わせた
シーケンスコントローラを示している。そして第2図は
プログラムメモリ3に格納されているシーケンス命令の
内容例を示し、第3図はマイコンメモリ9に格納されて
いるシーケンス拡張命令の内容例を示す。
EXAMPLE Hereinafter, an example of the present invention will be described with reference to FIG. The embodiment shown in FIG. 1 shows a sequence controller in which a general-purpose microcomputer 8 equipped with an 8-bit processor and a 1-bit processor 1 are combined. 2 shows an example of the content of sequence instructions stored in the program memory 3, and FIG. 3 shows an example of the content of sequence extension instructions stored in the microcomputer memory 9.

本実施例のシーケンスコントローラは、シーケン7基本
処理を実行する1ビットプロセッサ1と、1ビットプロ
セッサ1の処理結果をマイコンバス4上のデータと重畳
するデータ重畳回路5と、シーケンス拡張処理を実行す
る8ビツトマイコン8と、シーケンス拡張命令だけを格
納するマイコンメモリ9と、シーケンス命令によってマ
イコンバス4上の工106を処理するプロセッサを切り
換える切り換え回路7と、1ビットプロセッサ1と8ピ
ントマイコン8が処理するシーケンス命令全格納するプ
ログラムメモリ3とを備え・テイル。
The sequence controller of this embodiment includes a 1-bit processor 1 that executes sequence 7 basic processing, a data superimposition circuit 5 that superimposes the processing result of the 1-bit processor 1 on data on a microcomputer bus 4, and a sequence expansion process. The 8-bit microcomputer 8, the microcomputer memory 9 that stores only sequence extension instructions, the switching circuit 7 that switches the processor that processes the process 106 on the microcomputer bus 4 according to sequence instructions, and the 1-bit processor 1 and the 8-pin microcomputer 8 process A program memory 3 is provided to store all the sequence instructions to be executed.

シーケンスコントローラがシーケンス処理を実行するの
に先立って、8ビツトマイコン8は第2図に示すプログ
ラムメモリ3の内容を順次読み出していき、第3図に示
すようにシーケンス拡張命令だけを順次マイコンメモリ
9へ格納していく。
Before the sequence controller executes sequence processing, the 8-bit microcomputer 8 sequentially reads out the contents of the program memory 3 shown in FIG. Store it in.

シーケンスコントローラがシーケンス処mt−実行開始
すると、8ビツトマイコン8はマイコンメモリ9に格納
されている1つ目のシーケンス拡張命令の読み出しと解
読を行い、シーケンス処理の制御権が切り換え回路7に
より、1ビア)プロセッサ1から8ビツトマイコン8へ
移されるまで待機する。通常は1ビットプロセッサ1が
プログラムメモリ3の命令に従って順次マイコンバス4
上のl10sに対してシーケンス基本処理を実行してい
る。
When the sequence controller starts executing the sequence processing mt-, the 8-bit microcomputer 8 reads and decodes the first sequence extension instruction stored in the microcomputer memory 9, and the control right of the sequence processing is switched by the switching circuit 7. via) Waits until the data is transferred from the processor 1 to the 8-bit microcomputer 8. Normally, the 1-bit processor 1 sequentially transfers data to the microcomputer bus 4 according to instructions in the program memory 3.
Sequence basic processing is executed for the above l10s.

プログラムメモリ3の命令がシーケンス拡張命令になる
と、切シ換え回路7によりマイコンバス4上の!106
の制御権が1ビットプロセッサ16に対しマイコンメモ
リ9に格納されている1つ目のシーケンス拡張命令の処
理を実行する。次に、8ビツトマイコン8はシーケンス
処理の制御権全放棄し、切り換え回路7によシ制御潅が
1ビットプロセッサ1へ移され、1ビットプロセッサ1
は再びプログラムメモリ3に従って順次シーケンス基本
処理を実行する。
When the instruction in the program memory 3 becomes a sequence extension instruction, the switching circuit 7 causes the ! 106
The control right is given to the 1-bit processor 16 to execute processing of the first sequence extension instruction stored in the microcomputer memory 9. Next, the 8-bit microcomputer 8 relinquishes all control of sequence processing, and the switching circuit 7 transfers control to the 1-bit processor 1.
again executes the sequence basic processing in accordance with the program memory 3.

一方、制御権を放棄した8ビツトマイコン8は、マイコ
ンメモリ9に格納されている2つ目のシーケンス拡張命
令の読み出しと解読を行い、シーケンス処理の一制御鑞
が切シ換え回路7によシ、1ビットプロセッサ1から8
ビツトマイコン8へ移されるまで待機する。
On the other hand, the 8-bit microcomputer 8, which has relinquished the control right, reads and decodes the second sequence extension instruction stored in the microcomputer memory 9, and one control of the sequence processing is transferred to the switching circuit 7. , 1-bit processor 1 to 8
It waits until it is transferred to the bit microcomputer 8.

に対してシーケンス拡張処理が実行される。Sequence expansion processing is performed on the sequence.

このように本実施例によれば、プログラムメモリ3の命
令がシーケンス拡張命令である場合、1ビットプロセッ
サ1から制御権を移された8ビツトマイコン8は、マイ
コンバス4上OI;106iC対するシーケンス拡張処
理の実行に際して、プログラムメモリ3からシーケンス
拡張命令を読み出し、その内容の解読を行うための余分
な時間がかからない。
According to this embodiment, when the instruction in the program memory 3 is a sequence extension instruction, the 8-bit microcomputer 8 to which control is transferred from the 1-bit processor 1 executes the sequence extension for OI; 106iC on the microcomputer bus 4. When executing processing, no extra time is required to read the sequence extension instruction from the program memory 3 and decode its contents.

発明の効果 本発明によればマルチビットプロセッサがプログラムメ
モリのシーケンス拡張命令の命令読み出しと解読にかか
る時間をなくすことができるシーケンスコントローラを
提供することができる。
Effects of the Invention According to the present invention, it is possible to provide a sequence controller that allows a multi-bit processor to eliminate the time required for reading and decoding sequence extension instructions from a program memory.

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

第1図は本発明の一実施例を示す回路構成図、4図は従
来例を示す回路構成図である。 1・・・・・・1ビットプロセッサ、3・・・・・・プ
ログラムメモリ、4・・・・・・マイコンバス、6・・
・・・・データ重畳回路、6・・・・・・Ilo、7・
・・・・・切り換え回路、8・・・・・・8ビツトマイ
コン。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 区   0 只   7
FIG. 1 is a circuit configuration diagram showing one embodiment of the present invention, and FIG. 4 is a circuit configuration diagram showing a conventional example. 1... 1-bit processor, 3... Program memory, 4... Microcomputer bus, 6...
...Data superimposition circuit, 6...Ilo, 7.
...Switching circuit, 8...8-bit microcomputer. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Map area 0 only 7

Claims (1)

【特許請求の範囲】[Claims] 1ビットプロセッサとマルチビットプロセッサとを組み
合わせてなるシーケンスコントローラにおいて、シーケ
ンスプログラムを格納するプログラムメモリと、このプ
ログラムメモリからの命令によってシーケンス基本処理
を実行する1ビットプロセッサと、1ビットプロセッサ
の処理結果をマイコンバス上のデータと重畳するデータ
重畳回路と、このデータ重畳回路によって処理されるマ
イコンバス上のI/Oと、前記プログラムメモリの命令
がシーケンス拡張命令の場合にシーケンス拡張処理を実
行するマルチビットプロセッサと、前記プログラムメモ
リの命令によってシーケンス処理を行うプロセッサを切
り換える手段とからなり、マルチビットプロセッサがプ
ログラムメモリのシーケンス拡張命令の内容を実行前に
先読みと解読をしておき、プロセッサ切換手段によって
シーケンス処理の制御権がマルチビットプロセッサに切
り換わった際に、マルチビットプロセッサがプログラム
メモリのシーケンス拡張命令の命令読み出しと解読にか
かる時間をなくすように構成したことを特徴とするシー
ケンスコントローラ。
In a sequence controller that is a combination of a 1-bit processor and a multi-bit processor, there is a program memory that stores a sequence program, a 1-bit processor that executes basic sequence processing based on instructions from this program memory, and a 1-bit processor that processes the processing results of the 1-bit processor. A data superimposition circuit that superimposes data on the microcomputer bus, I/O on the microcomputer bus that is processed by the data superimposition circuit, and a multi-bit that executes sequence extension processing when the instruction in the program memory is a sequence extension instruction. The multi-bit processor prereads and decodes the contents of the sequence extension instructions in the program memory before execution, and the processor switching means switches the processor to perform sequence processing according to the instructions in the program memory. A sequence controller characterized in that the multi-bit processor is configured to eliminate the time required for reading and decoding sequence extension instructions in a program memory when control of processing is switched to the multi-bit processor.
JP4890688A 1988-03-02 1988-03-02 Sequence controller Pending JPH01223505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4890688A JPH01223505A (en) 1988-03-02 1988-03-02 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4890688A JPH01223505A (en) 1988-03-02 1988-03-02 Sequence controller

Publications (1)

Publication Number Publication Date
JPH01223505A true JPH01223505A (en) 1989-09-06

Family

ID=12816310

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4890688A Pending JPH01223505A (en) 1988-03-02 1988-03-02 Sequence controller

Country Status (1)

Country Link
JP (1) JPH01223505A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59142611A (en) * 1983-01-28 1984-08-15 シ−メンス,アクチエンゲゼルシヤフト Stored program type controller
JPS6297003A (en) * 1985-10-23 1987-05-06 Toshiba Mach Co Ltd Processing system for high-class language with programmable controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59142611A (en) * 1983-01-28 1984-08-15 シ−メンス,アクチエンゲゼルシヤフト Stored program type controller
JPS6297003A (en) * 1985-10-23 1987-05-06 Toshiba Mach Co Ltd Processing system for high-class language with programmable controller

Similar Documents

Publication Publication Date Title
JPH02156334A (en) Information processor
JPS63307535A (en) Pipeline control circuit
JPH01223505A (en) Sequence controller
JP2985244B2 (en) Information processing device
JP2529694B2 (en) Standby instruction execution device for microprocessor
JPH01244503A (en) Sequence controller
JPS63280333A (en) Microprogram controller
JPS61202225A (en) Hardware control system using processor
JP2544533B2 (en) Programmable controller sequence instruction processor
JPH0883188A (en) A computer that performs multitasking
JP2618703B2 (en) High-speed operation processing method of programmable sequence controller
JPS6284338A (en) Microprogram controller
JPH0462093B2 (en)
JPS63298634A (en) Information processor
JPS62243031A (en) Information processor
JPH02137028A (en) Command control method
JPS61216027A (en) Microprogram processing method
JPS62262140A (en) Microcomputer
JPS60163131A (en) information processing equipment
JPS6236576B2 (en)
JPS6059442A (en) Controller
JPH05233026A (en) Microcomputer circuit
JPS6346542A (en) Information processor
JPH03168844A (en) Program debugging system
JPS63245524A (en) Microprocessor