JPH03189801A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH03189801A
JPH03189801A JP33171489A JP33171489A JPH03189801A JP H03189801 A JPH03189801 A JP H03189801A JP 33171489 A JP33171489 A JP 33171489A JP 33171489 A JP33171489 A JP 33171489A JP H03189801 A JPH03189801 A JP H03189801A
Authority
JP
Japan
Prior art keywords
arithmetic circuit
instruction
basic
memory
input
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
JP33171489A
Other languages
Japanese (ja)
Inventor
Hisanori Kataoka
片岡 久典
Hiromi Ogawa
小川 広海
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP33171489A priority Critical patent/JPH03189801A/en
Publication of JPH03189801A publication Critical patent/JPH03189801A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To shorten the time required for obtaining a result of operation after reading out an applied instruction to a basic arithmetic circuit, and to execute the operation at a high speed by executing the applied instruction to the middle part by a general purpose arithmetic circuit in the course of executing a basic instruction of the basic arithmetic circuit. CONSTITUTION:While a basic arithmetic circuit 1B is executing a basic instruction, a general purpose arithmetic circuit 2B reads out an applied instruction from an auxiliary memory 12B and executes, it, and when it advances immediately before an access of an input/output memory 4, an access request is issued to the basic arithmetic circuit 1B. In this case, until the applied instruction is read out to the basic arithmetic circuit 1B, the general purpose arithmetic circuit 2B discontinues its execution by a holding command of the basic arithmetic circuit 1B. Subsequently, when the applied instruction is read out to the basic arithmetic circuit 1B, the issue of the holding command is stopped and the general purpose arithmetic circuit 2B restarts its execution. Accordingly, since the applied instruction is executed to the middle part, the operation of the general purpose arithmetic circuit 2B is ended quickly and a result of operation is written in the input/output memory 4. In such a way, the execution of this instruction is ended in a short time after the applied instruction is read out to the basic arithmetic circuit 1B, and the operation can be executed at a high speed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、1ビット演算、複数ビット演算を基本演算回
路、汎用演算回路それぞれにより実行するプログラマブ
ル・コントローラに関スル。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a programmable controller that executes 1-bit operations and multi-bit operations using basic arithmetic circuits and general-purpose arithmetic circuits, respectively.

〔従来の技術〕[Conventional technology]

従来、プログラマブル・コントローラ(以下PCという
)は第5図に示すように、シーケンス制御の1ビツト演
算(以下ビット演算という)の基本命令、8ビツト演算
等の複数ビット演算(以下応用演算という)の応用命令
それぞれを実行する基本演算回路(LA) 、汎用演算
回路(2A)を設けて形成される。
Conventionally, programmable controllers (hereinafter referred to as PCs) have been equipped with basic instructions for 1-bit operations (hereinafter referred to as bit operations) for sequence control, as well as multi-bit operations such as 8-bit operations (hereinafter referred to as applied operations), as shown in Figure 5. It is formed by providing a basic arithmetic circuit (LA) and a general-purpose arithmetic circuit (2A) that execute each application instruction.

そして、シフトレジスタ等で構成される基本演算回路(
IA)は、制御命令メモリとしてのユーザメモリ(3)
及び入出力メモリ(41のアクセス制御権を有し、両メ
モリ(3) 、 (41のマルチプレクサ+51 、 
filに制御信号HEを送ってメモリ(3) 、 (4
1のアクセスを制御する。
The basic arithmetic circuit (which consists of shift registers, etc.)
IA) is a user memory (3) as a control instruction memory
and input/output memory (41 access control rights, both memories (3), (41 multiplexers + 51,
Send control signal HE to memory (3), (4
1 access is controlled.

この制御に基きユーザメモリ(3)に保持されたシーケ
ンス制御中の例えば単位制御の全命令は、実行終了毎に
シーケンス制御の処理順にマルチプレクサ15)、パヌ
C7)を介して基本演算回路CIA)に読出される。
Based on this control, all instructions of unit control, for example, during sequence control held in the user memory (3) are sent to the basic arithmetic circuit CIA) via multiplexer 15) and PANU C7) in the processing order of sequence control every time execution is completed. Read out.

そして、基本命令が読出されたときは、基本演算回路(
IA)がビット演算を実行し、その演算結果がバス(8
)、マルチプレクサ(6)を介して入出力メモリ(4)
に書込まれる。
When the basic instruction is read, the basic arithmetic circuit (
IA) executes a bit operation, and the result of the operation is transferred to the bus (8
), input/output memory (4) via multiplexer (6)
written to.

また、応用命令が読出されたときは、基本演算回路(I
A)から汎用演算回路(2A)に演算指令用の割込み(
lNTa )が発行されるとともに、制御信号SEによ
ってマルチプレクサr51 、 (61がバス(9) 
、 nO[切換ワリ、メモIJ (3) 、 C41の
アクセス権が汎用演算回路(2A)に渡される。
Also, when an application instruction is read, the basic arithmetic circuit (I
An interrupt (
lNTa) is issued, and the control signal SE causes the multiplexer r51, (61 is the bus (9)
, nO[switching, memo IJ (3), the access right of C41 is passed to the general-purpose arithmetic circuit (2A).

このとき、例えば8ピツ)CPUで構成される汎用演算
回路(2A)は、プログラムメモリ(IIA)の動作プ
ログラムにしだがって動作し、最初に、ニーサメモリ(
3)カラマ/レチデレクサ15)、バス(9) ヲ介し
て基本演算回路(IA)に読出された命令と同一のル1
用命令を読出す。
At this time, the general-purpose arithmetic circuit (2A) composed of, for example, an 8-bit CPU operates according to the operation program in the program memory (IIA), and first, the Nisa memory (
3) The same code as the instruction read out to the basic arithmetic circuit (IA) via the Karama/rechiderax 15) and the bus (9)
Read the instructions for use.

さらに、読出した応用命令の応用演算をワークメモ!’
 (12A)を用いて実行し、その演算結果をバスQO
、マルチプレクサ(6)を介して入出力メモリ(4)に
書込む。
In addition, you can take a work memo of the applied operations of the read application instructions! '
(12A), and the result of the operation is applied to the bus QO
, to the input/output memory (4) via the multiplexer (6).

なお、入出力メモリ(4)に保持された演算結果が応用
演算に必要なときは、演算中に入出力メモリ(41から
マルチプレクサ(6)、バス00を介して汎用演算回路
(2A)に以前の演算結果が読出される。
Note that when the calculation results held in the input/output memory (4) are required for applied calculations, they are transferred from the input/output memory (41) to the general-purpose calculation circuit (2A) via the multiplexer (6) and bus 00 during the calculation. The calculation result is read out.

そして、汎用命令の演算が終了すると、汎用演算回路(
2A)から基本演算回路(IA)に終了報知としてのス
タート(START)が発行される。
Then, when the operation of the general-purpose instruction is completed, the general-purpose operation circuit (
2A) issues a start (START) as an end notification to the basic arithmetic circuit (IA).

このとき、基本演算回路(IA)は待機状態から復帰し
、マルチプレクサr5) 、 C6)をバス(7) 、
 C8)に切換えてアクセス権を戻し、ユーザメモリ(
3)から次の命令を読出す。
At this time, the basic arithmetic circuit (IA) returns from the standby state and connects multiplexers r5) and C6) to buses (7) and
C8) to return access privileges to the user memory (
Read the next instruction from 3).

そし2て、ユーザメモリ(3)の全命令の演算が終了し
、入出力メモリ(4)に全演算結果が処理順に保持され
ると、このメモリの演算結果が入出力インタフェース回
路等に転送されて実際の制御が行われる。
2. When the calculations of all instructions in the user memory (3) are completed and all calculation results are stored in the input/output memory (4) in the order of processing, the calculation results in this memory are transferred to the input/output interface circuit, etc. actual control is performed.

ところで、応用命令が読出されて基本演算回路(IA)
から汎用演算回路(2A)に演算を切換えるときに、基
本演算回路(IA)のソフト処理で応用命令のアドレス
等を生成して汎用演算回路(2A)に与えると、切換え
に時間を要してオーバーヘッドが増大する。
By the way, when the application instruction is read and the basic arithmetic circuit (IA)
When switching the operation from the basic arithmetic circuit (IA) to the general-purpose arithmetic circuit (2A), if the address of the applied instruction is generated by the software processing of the basic arithmetic circuit (IA) and given to the general-purpose arithmetic circuit (2A), it will take time to switch. Overhead increases.

そのため、特開昭63−95503号公報(GQ 5B
19102 )には、基本演算回路(IA)が応用命令
を読出して割込みを発行したときに、レジスタ、デコド
回路のハード回路から汎用演算回路(2A)に応用命令
の先頭アドレス等を与え、演算の切換えを迅速に行うこ
とが記載されている。
Therefore, Japanese Patent Application Laid-Open No. 63-95503 (GQ 5B
19102), when the basic arithmetic circuit (IA) reads an application instruction and issues an interrupt, the register and the hardware circuit of the decoder circuit give the general purpose arithmetic circuit (2A) the start address of the application instruction, etc. It is described that switching can be performed quickly.

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

前記従来のPCの場合、前記公報に記載の手法を用いて
も基本演算回路(IA)が応用命令を読出した後、汎用
演算回路(2A)が同一の命令を読出して実行を開始す
るため、応用命令の演算結果が得られるまでに時間を要
し、演算の十分な高速化が図れず、オーバーヘッドが生
じる問題点がある。
In the case of the conventional PC, even if the method described in the publication is used, after the basic arithmetic circuit (IA) reads an applied instruction, the general-purpose arithmetic circuit (2A) reads the same instruction and starts execution. There is a problem in that it takes time to obtain the calculation result of the applied instruction, the calculation cannot be sufficiently accelerated, and overhead occurs.

本発明は、応用命令が基本演算回路に読出されてからそ
の演算結果が得られるまでの時間を短縮し、演算の高速
化を図るようにしたPCを提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a PC that shortens the time from when an application instruction is read to a basic arithmetic circuit to when the result of the arithmetic operation is obtained, thereby increasing the speed of arithmetic operations.

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

m記目的を達成するために、本発明のPCにおいては、
制御命令メモリと別個に各応用命令のみを保持し汎用演
算回路が順次に読出す並列演算用の補助メモリを備え、 前記;凡用演算回路に、入出力メモリのアクセス直+’
+iT tでの命令実行によりアクセス要求を発行する
手段と、待機指令の入力により前記命令実行を中1わテ
する手段と、111記待機指令の入力停止によりniI
記命全命令実行開し前記入出力メモリをアクセスして演
算結果をM込む手段と、前記各応用命令の′ノーで行終
了毎に終了報知を発行する手段とを設け、基本演算回路
に、前記アクセス要求の入力待前記制御命令メモリから
前記各応用命令が読出されるまでMiJ記待機指令を発
行する手段と、前記各応用命令の読出しにより前記待機
指令の発行を停止するとともにLl’l it己終了報
知が入力されるまで前記入出力メモリのアクセス権を前
記汎用演算回路に移行する手段上を設ける。
In order to achieve the above objectives, the PC of the present invention includes the following:
Separately from the control instruction memory, there is an auxiliary memory for parallel operations that holds only each application instruction and is sequentially read out by the general-purpose arithmetic circuit.
+iT means for issuing an access request by executing a command at t; means for interrupting the execution of the said command by inputting a standby command;
The basic arithmetic circuit is provided with means for executing all commands, accessing the input/output memory and inputting the result of the operation, and means for issuing an end notification each time a line ends with 'No' of each of the applied instructions, and in the basic arithmetic circuit, means for issuing a MiJ standby command until each of the application commands is read from the control command memory while waiting for the access request to be input; Means is provided for transferring the access right of the input/output memory to the general-purpose arithmetic circuit until a self-termination notification is input.

1作用〕 1)11記のようにF:ii成された本発明のPCの場
合、基本演算回路が基本命令を実行する間に汎用演算回
路が補助メモリから応用命令を読出して実行し、入出力
メモリのアクセス直前まで進んだときに基本演算回路に
アクセス要求が発行される。
1 Effect] 1) In the case of the PC of the present invention configured as F:ii as described in item 11, while the basic arithmetic circuit executes the basic instruction, the general-purpose arithmetic circuit reads the applied instruction from the auxiliary memory, executes it, and inputs it. An access request is issued to the basic arithmetic circuit when the process advances to the point just before accessing the output memory.

このとき、基本演算回路に応用命令が読出されるまでは
、基本演算回路の待機指令により汎用演算回路が実行を
中断する。
At this time, the general-purpose arithmetic circuit suspends execution by the standby command of the basic arithmetic circuit until the application instruction is read out to the basic arithmetic circuit.

そして、基本演算回路に応用命令が読出されると、待機
指令の発行が停止されて汎用演算回路が実行を再開し、
このとき、応用命令が途中まで実行されているため、汎
用演算回路の演算が迅速に終了して演算結果が入出力メ
モリに書込まれる。
Then, when the application instruction is read to the basic arithmetic circuit, the issuance of the standby command is stopped and the general-purpose arithmetic circuit resumes execution.
At this time, since the application instruction has been executed halfway, the operation of the general-purpose arithmetic circuit is quickly completed and the operation result is written to the input/output memory.

さらに、応用命令の演算が終了すると、基本演算回路に
終了報知が発行され、基本演算回路に次の命令が読出さ
れる。
Further, when the operation of the applied instruction is completed, a completion notification is issued to the basic arithmetic circuit, and the next instruction is read to the basic arithmetic circuit.

そのため、基本演算回路に応用命令が読出されてから極
めて短時間にこの命令の実行が終了し、演算の高速化が
図られる。
Therefore, the execution of the applied instruction is completed in a very short time after it is read into the basic arithmetic circuit, thereby speeding up the arithmetic operation.

〔実施例〕〔Example〕

■実施例について、第1図ないし第4図を参照して説明
する。
(2) Examples will be explained with reference to FIGS. 1 to 4.

第1図において、(IB)はレジスタ等からなる基本演
算回路、(2B)はCPU構成の汎用演算回路、(+、
、 ]、B )はプログラムメモ!J、(12B)は補
助メモリを形成するワークメモリである。
In Figure 1, (IB) is a basic arithmetic circuit consisting of registers, etc., (2B) is a general-purpose arithmetic circuit with a CPU configuration, (+,
, ], B) are program memos! J, (12B) is a work memory forming an auxiliary memory.

そして、制御命令メモリとしてのユーザメモリ(3)の
全命令が第2図に示すように、基本命令n(n−1,2
,・・・)、応用命令m(rn=l、2.・・・)で形
成される場合、ワークメモIJ (12B)は第3図に
ij”:すように、各応用命令mのみが補助メモリの領
域(A)に1井込まれる。
Then, as shown in FIG.
,...), applied instructions m (rn=l, 2...), the work memo IJ (12B) is shown in Fig. One well is stored in the auxiliary memory area (A).

この領域(A)の書込みは、外部制御又は汎用演算回路
(2B)の命令転送制御により、ユーザメモリ(3)の
−F込み特等、ユーザメモリ(3)から基本演算回路(
iB)への読出しが開始される曲に行われる。
Writing to this area (A) is carried out by external control or command transfer control of the general-purpose arithmetic circuit (2B), such as -F writing of the user memory (3), from the user memory (3) to the basic arithmetic circuit (
iB) is performed for the song that is started.

なお、ワークメモIJ (1215)の領域(B)は第
5図のメモl) (1,2A、)と同(子、応用命令の
演算に用いられる。
Note that the area (B) of the work memo IJ (1215) is used for calculations of child and application instructions similar to the memo 1) (1, 2A,) in FIG.

−また、基本演算回路(IB)は第5図の演算回路(I
A)の割込み(]、N’l’a )を発イテする手段の
代わりに、例えばゲート回路、フリップフロップ等のハ
ード回路で構成された次の(1) 、 fiil 、 
(ii−の各手段を有する。
- Also, the basic arithmetic circuit (IB) is the arithmetic circuit (IB) shown in FIG.
Instead of the means for issuing interrupts (], N'l'a) in A), the following (1), fiil, which is constructed of hard circuits such as gate circuits and flip-flops, is used.
(It has each means of ii-.

(1)後述のアクセス要求(ACC:)の入力時、ユー
ザメモリ(3)から汎用命令が読出されるまで待機指令
(WAIT)を発行する手段。
(1) Means for issuing a standby command (WAIT) until a general-purpose instruction is read from the user memory (3) when an access request (ACC:) to be described later is input.

1’+i+応用命令が読出されたときに、待機指令(W
AIT)の発行を停止するとともにマルチプレクサ(6
)ヲバヌ00に切換えて入出力メモ!J (41のアク
セス権を汎用演算回路(2B)に渡す手段。
When the 1'+i+application command is read, the standby command (W
AIT) issuance is stopped and the multiplexer (6
) Switch to Wobanu 00 and record input/output notes! J (Means for passing the access right of 41 to the general purpose arithmetic circuit (2B).

(iii)読出された応用命令の演算結果が不要なとき
に、割込み(INT h )を発行して汎用演算回路(
2B)に次の命令の実行を指令するとともに、前記次の
命令が応用命令であれば待機解除を指令する手段。
(iii) When the operation result of the read application instruction is not needed, an interrupt (INT h ) is issued and the general-purpose operation circuit (
2B) means for instructing to execute the next instruction and, if the next instruction is an applied instruction, for instructing to cancel standby.

さらに、汎用演算回路(2B)はプログラムメモリ(1
1B)の動作プログラムに基き、第5図の演算回路(2
A)の命令読出し20手段等の代わりに、次の(a)。
Furthermore, the general-purpose arithmetic circuit (2B) has a program memory (1
Based on the operation program of 1B), the arithmetic circuit of Fig. 5 (2
In place of the instruction reading means 20, etc. in A), use the following (a).

曲 (c) 、 fdl 、 fel 、 (f)の各
手段を有する。
It has the following means: (c), fdl, fel, (f).

fa)ワークメモ!J (12B)の領域(A)から各
庁、用命令を順次に読出す手段。
fa) Work memo! Means for sequentially reading out instructions for each office from area (A) of J (12B).

(bl A・用命令を入出力メモリ(4)のアクセス直
前まで実行したときにアクセス要求(ACC:)を発行
する手段。
(bl Means for issuing an access request (ACC:) when the instruction for A is executed until just before accessing the input/output memory (4).

(c)待機指令(WAIT)の入力により実行を中断す
る手段。
(c) Means for interrupting execution by inputting a standby command (WAIT).

fd)待機命令(WAIT)の入力停止によシ実行を再
開して演算結果を入出力メモリ(4)に書込む手段。
fd) Means for restarting execution upon stopping the input of a wait instruction (WAIT) and writing the operation result to the input/output memory (4).

Ie)割込み(IN’rh)の入力により次の応用命令
の読出し、実行に移行する手段。
Ie) Means for transitioning to reading and executing the next application instruction upon input of an interrupt (IN'rh).

げ)応用命令の実行終了毎に終了報知(START)を
発行する手段。
g) Means for issuing a termination notification (START) each time execution of an application instruction is completed.

そして、ユーザメモリ(3)から基本演算回路(IB)
への全命令の順次の読出しがts時に始まると、同時に
ワークメモ!J (12B)の領域(A)から汎用演算
回路(2B)への読出しも始まる。
Then, from the user memory (3) to the basic arithmetic circuit (IB)
When the sequential reading of all instructions to the work memo! starts at time ts, the work memo! Reading from the area (A) of J (12B) to the general purpose arithmetic circuit (2B) also begins.

したがって、基本演算回路(IB)が読出された基本命
令nの演算を実行する間に、汎用演算回路(2B)が読
出された応用命令mを実行し、両波算回路(ljj)。
Therefore, while the basic arithmetic circuit (IB) executes the operation of the read basic instruction n, the general-purpose arithmetic circuit (2B) executes the read application instruction m, and the two wave arithmetic circuits (ljj).

(2B)が並列演算を行う。(2B) performs parallel operations.

そして、第4図fa)に示すように基本演算回路(IB
)は基本命令1.2の演算を順に実行し、バスC8】。
Then, as shown in Fig. 4 fa), the basic arithmetic circuit (IB
) executes the operations of basic instructions 1.2 in order, and the bus C8].

マルチプレクサ(6)を介して入出力メモリ(4)に演
算結果を書込む。
The calculation result is written to the input/output memory (4) via the multiplexer (6).

また、第4図向に示すように汎用演算回路(2B)は応
用命令1の演算を実行し、この演算途中又は演算終了に
よりta時に入出力メモリ(4)のアクセス直前まで実
行が進むと、アクセス要求(ACC)を発行する。
Further, as shown in Fig. 4, the general-purpose arithmetic circuit (2B) executes the operation of the application instruction 1, and when the operation progresses to just before accessing the input/output memory (4) at time ta due to the middle of this operation or the end of the operation, Issue an access request (ACC).

このとき、基本命令2の実行中であるため、基本演算回
路(IB)が待機指令(WAIT)を発行し、この指令
(WAIT)が入力される間、汎用演算回路(2B)が
応用命令lの実行を中断する。
At this time, since basic instruction 2 is being executed, the basic arithmetic circuit (IB) issues a standby command (WAIT), and while this command (WAIT) is being input, the general-purpose arithmetic circuit (2B) interrupt execution.

そして、基本命令2の演算結果が入出力メモリ(41に
書込まれて基本命令2の実行が終了し、ユーザメモリ(
3)から応用命令1が読出されると、基本演算回路(I
B)は読出された直後のtb時に待機指令(WAIT)
の発行を停止する。
Then, the operation result of basic instruction 2 is written to the input/output memory (41), the execution of basic instruction 2 is completed, and the user memory (
When application instruction 1 is read from 3), the basic arithmetic circuit (I
B) is a standby command (WAIT) at tb immediately after being read.
stop publishing.

また、制御信号SEによってマルチプレクサ(6)をパ
ス叫に接続し、入出力メモリ(4)のアクセス権を汎用
演算回路(2B)に渡す。
Furthermore, the multiplexer (6) is connected to the path via the control signal SE, and the access right to the input/output memory (4) is passed to the general purpose arithmetic circuit (2B).

そして、汎用演算回路(2B)は応用命令1の実行を再
開し、その演算結果をバスQd 、マルチプレクサ(6
)を介して入出力メモリ(4)に書込み、応用命令1の
実行がtc時に終了すると、このtc時に終了報知(S
TART)を発行する。
Then, the general-purpose arithmetic circuit (2B) resumes execution of the application instruction 1, and transfers the result of the operation to the bus Qd and the multiplexer (6).
) to the input/output memory (4), and when the execution of application instruction 1 ends at time tc, a completion notification (S
TART).

この終了報知(START)の入力により、基本演算回
路(IB)は待機状態から復帰するとともに、制御信号
SEによってマルチプレクサ(6)をバス18】に接続
して入出力メモリ(4)のアクセス権を戻す。
Upon input of this end notification (START), the basic arithmetic circuit (IB) returns from the standby state, and the control signal SE connects the multiplexer (6) to the bus 18 and grants access rights to the input/output memory (4). return.

そして、ユーザメモリ(3)から次の基本命令3が読出
され、基本演算回路(IB)が基本命令3を実行する。
Then, the next basic instruction 3 is read out from the user memory (3), and the basic arithmetic circuit (IB) executes the basic instruction 3.

一方、tc時の終了報知(START)の発行後、汎用
演算回路(2B)はワークメモ!J (12B)から次
の応用命令2を読出して実行し、この命令2がfd時に
入出力メモリr41のアクセス直前まで実行されると、
再びアクセス要求(ACC:)を発行する。
On the other hand, after issuing the end notification (START) at time tc, the general-purpose arithmetic circuit (2B) issues the work memo! When the next application instruction 2 is read from J (12B) and executed, and this instruction 2 is executed until just before accessing the input/output memory r41 at fd,
An access request (ACC:) is issued again.

このとき、基本命令3の実行中であるため基本演算回路
(IB)が待機指令(WAIT)を発行し、汎用演算回
路(2B)の実行が中断する。
At this time, since the basic instruction 3 is being executed, the basic arithmetic circuit (IB) issues a standby command (WAIT), and the execution of the general purpose arithmetic circuit (2B) is interrupted.

そして、基本命令3の実行終了によりユーザメモリ(3
)から応用命令2が読出され、このとき、応用命令2の
演算結果が必要であれば、待機指令(WAIT)の発行
が停止されて応用命令1のときと同様の動作がくり返え
される。
Then, upon completion of execution of basic instruction 3, the user memory (3
), and if the calculation result of the applied instruction 2 is required, the issuance of the wait command (WAIT) is stopped and the same operation as for the applied instruction 1 is repeated.

しかし、応用命令2が直前の基本命令3の演算結果に基
く条件処理命令等からなり、しかも、その演算結果が不
要なときは、演算速度の一層の高速化を図るだめ、基本
演算回路(IB)は第4図falのIe時に待機指令(
WAIT)の発行を停止して割込み(INTh)を発行
する。
However, if the application instruction 2 consists of a conditional processing instruction based on the operation result of the immediately preceding basic instruction 3, and the operation result is not needed, the basic operation circuit (IB ) is the standby command (
WAIT) is stopped and an interrupt (INTh) is issued.

この割込み(INTh)の入力時、汎用演算回路(2B
)は動作プログラムに基〈割込処理によりワークメモ!
J (12B)から次の応用命令3を読出し、この読出
しが終了するtr時に終了報知(START)を発行し
て応用命令3の実行に移行し、入出力メモリ(4)のア
クセス直前のt、f時にアクセス要求(ACC)を発行
する。
When this interrupt (INTh) is input, the general purpose arithmetic circuit (2B
) is based on the operating program (work memo by interrupt processing!
The next application instruction 3 is read from J (12B), and at the time tr when this reading ends, an end notification (START) is issued and execution of the application instruction 3 is started. An access request (ACC) is issued at time f.

まだ、終了報知(START)の入力によシ基本演算回
路(IB)が次の命令の実行に移行する。
However, upon input of the end notification (START), the basic arithmetic circuit (IB) shifts to execution of the next instruction.

このとき、ユーザメモリ(3)から応用命令が読出され
ると、基本演算回路(IB)はアクセス要求(ACC)
の入力に基き、待機指令(WAIT)の代わシに許可を
示す待機解除を発行するとともにアクセス権を汎用演算
回路(2B)に渡す。
At this time, when the application instruction is read from the user memory (3), the basic arithmetic circuit (IB) issues an access request (ACC).
Based on the input, a standby release indicating permission is issued instead of a standby command (WAIT), and the access right is passed to the general purpose arithmetic circuit (2B).

そして、ユーザメモリ(3)の全命令が読出され、入出
力メモリ(4)に各演算結果が書込まれると、自演算回
路(IF3)、(2B)の演算が終了する。
Then, when all the instructions in the user memory (3) are read out and the results of each operation are written in the input/output memory (4), the operations in the own operation circuits (IF3) and (2B) are completed.

このとき、各応用命令n)がユーザメモリ(3)からの
読出しを待たずに途中まで先に実行されるため、ユーザ
メモリ(3)から各応用命令mが読出されたときに各命
令rl’lが迅速に実行されて終了し、しかも、不要な
応用命令の実行が途中で打切られて次の応用命令の実行
が行われるため、応用命令mの演算が極めて迅速に行わ
れる。
At this time, since each application instruction n) is executed halfway without waiting for it to be read from the user memory (3), each application instruction rl' Since the execution of the application instruction l is quickly completed and the execution of the unnecessary application instruction is aborted midway and the execution of the next application instruction is carried out, the calculation of the application instruction m is performed extremely quickly.

なお、前記実施例ではワークメモ’) (12B)の−
部の領域(A)を補助メモリとしだが、補助メモリrワ
ークメモリと別個に設けてもよい。
In addition, in the above embodiment, - of work memo') (12B)
Although the area (A) is used as an auxiliary memory, the auxiliary memory r and the work memory may be provided separately.

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

本発明は、以上説明したように構成されているため、以
下に記載する効果を奏する。
Since the present invention is configured as described above, it produces the effects described below.

制御命令メモリと別個の補助メモリから汎用演算回路に
各応用命令を順次に読出し、基本演算回路の基本命令の
実行中に汎用演算回路によって応用命令を途中まで実行
したため、自演算回路が並列に動作し、制御命令メモリ
から基本演算回路に各応用命令が読出されたときに、各
応用命令の演算結果が短時間で入出力メモリに書込まれ
、応用命令の演算を高速化し、自演算回路の演算の切換
えに基くオーバーヘッドを著しく減少することができる
Each applied instruction is sequentially read from the control instruction memory and separate auxiliary memory to the general-purpose arithmetic circuit, and the applied instruction is partially executed by the general-purpose arithmetic circuit while the basic instruction of the basic arithmetic circuit is being executed, so that the own arithmetic circuit operates in parallel. When each application instruction is read from the control instruction memory to the basic arithmetic circuit, the operation result of each application instruction is written to the input/output memory in a short time, speeding up the operation of the application instruction and speeding up the operation of the own operation circuit. Overhead based on switching operations can be significantly reduced.

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

第1図ないし第4図は本発明のプログラマブル・コント
ローラの1実施例を示し、第1図はブロック図、第2図
、第3図はユーザメモリ、ワークメモリのメモリマツプ
、第4図fal 、 fb)は動作説明用のタイミング
チャート、第5図は従来例のブロック図である。 (1]3)・・・基本演算回路、(2B)・・・汎用演
算回路、(3)・・・ユーザメモリ、(41・・・入出
力メモIJ、(LLB)・・・プログラムメモリ、(1
2B)・・・ワークメモリ。
1 to 4 show one embodiment of the programmable controller of the present invention, in which FIG. 1 is a block diagram, FIGS. 2 and 3 are memory maps of user memory and work memory, and FIG. 4 is a memory map of the user memory and work memory, and FIG. ) is a timing chart for explaining the operation, and FIG. 5 is a block diagram of a conventional example. (1] 3)... Basic arithmetic circuit, (2B)... General purpose arithmetic circuit, (3)... User memory, (41... Input/output memo IJ, (LLB)... Program memory, (1
2B)...Work memory.

Claims (1)

【特許請求の範囲】 1 制御命令メモリに保持されたシーケンス制御の1ビ
ット演算の各基本命令、複数ビット演算の各応用命令そ
れぞれを実行する基本演算回路、汎用演算回路を備え、 前記制御命令メモリの処理順の全命令を前記基本演算回
路に順次に読出すとともに、前記基本演算回路のアクセ
ス制御により前記両演算回路の演算結果を前記処理順に
入出力メモリに書込むプログラマブル・コントローラに
おいて、 前記制御命令メモリと別個に前記各応用命令のみを保持
し前記汎用演算回路が順次に読出す並列演算用の補助メ
モリを備え、 前記汎用演算回路に、前記入出力メモリのアクセス直前
までの命令実行によりアクセス要求を発行する手段と、
待機指令の入力により前記命令実行を中断する手段と、
前記待機指令の入力停止により前記命令実行を再開し前
記入出力メモリをアクセスして演算結果を書込む手段と
、前記各応用命令の実行終了毎に終了報知を発行する手
段とを設け、 前記基本演算回路に、前記アクセス要求の入力時前記制
御命令メモリから前記各応用命令が読出されるまで前記
待機指令を発行する手段と、前記各応用命令の読出しに
より前記待機指令の発行を停止するとともに前記終了報
知が入力されるまで前記入出力メモリのアクセス権を前
記汎用演算回路に移行する手段とを設けた ことを特徴とするプログラマブル・コントローラ。
[Scope of Claims] 1. The control instruction memory comprises a basic arithmetic circuit and a general-purpose arithmetic circuit that execute each basic instruction of 1-bit operation of sequence control and each applied instruction of multi-bit operation held in the control instruction memory, respectively. The programmable controller sequentially reads out all instructions in the processing order to the basic arithmetic circuit, and writes the calculation results of both the arithmetic circuits to the input/output memory in the processing order by access control of the basic arithmetic circuit. Separately from the instruction memory, there is provided an auxiliary memory for parallel calculations that holds only the application instructions and is sequentially read out by the general-purpose arithmetic circuit, and the general-purpose arithmetic circuit is accessed by executing the instruction immediately before accessing the input/output memory. a means for issuing a request;
means for interrupting the execution of the command by inputting a standby command;
means for restarting the instruction execution upon stopping the input of the standby command, accessing the input/output memory and writing the calculation result; and means for issuing a completion notification each time execution of each of the application instructions is completed; means for issuing the standby command until each applied command is read from the control command memory when the access request is input to the arithmetic circuit; A programmable controller comprising means for transferring access rights of the input/output memory to the general-purpose arithmetic circuit until a termination notification is input.
JP33171489A 1989-12-20 1989-12-20 Programmable controller Pending JPH03189801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33171489A JPH03189801A (en) 1989-12-20 1989-12-20 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33171489A JPH03189801A (en) 1989-12-20 1989-12-20 Programmable controller

Publications (1)

Publication Number Publication Date
JPH03189801A true JPH03189801A (en) 1991-08-19

Family

ID=18246769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33171489A Pending JPH03189801A (en) 1989-12-20 1989-12-20 Programmable controller

Country Status (1)

Country Link
JP (1) JPH03189801A (en)

Similar Documents

Publication Publication Date Title
JPH0496163A (en) Dma controller
JP2655615B2 (en) Information processing device
JPS62251865A (en) Information processor
JPS62243044A (en) Control system for disk cache memory
JPH03189801A (en) Programmable controller
JP2846760B2 (en) Programmable controller
JPH04107672A (en) Microprocessor
JPH0876876A (en) Clock supply control circuit of microprocessor
JPS60159958A (en) Data transfer controlling circuit
JPH07295761A (en) Mirroring magnetic disk device
JPH0438552A (en) Direct memory access transfer system
JPH0481939A (en) Control system for microcomputer
JP3084953B2 (en) Information processing device
JPS6252900B2 (en)
JPS58205258A (en) Data processor
JPH05250161A (en) Microcomputer device
JPS6353644A (en) Instruction control device
JPS6210736A (en) Prefetching control system for micro instruction
JPS6186843A (en) Control method for high-speed programmable controller
JPH0352041A (en) Local memory control circuit
JPH0218733B2 (en)
JPH0212535A (en) Instruction execution system
JPS62168246A (en) Memory writing control system
JPS6231439A (en) Instruction reprocessing control system
JPH0423041A (en) Data processor