JPH05324018A - Control circuit for pc - Google Patents

Control circuit for pc

Info

Publication number
JPH05324018A
JPH05324018A JP12736492A JP12736492A JPH05324018A JP H05324018 A JPH05324018 A JP H05324018A JP 12736492 A JP12736492 A JP 12736492A JP 12736492 A JP12736492 A JP 12736492A JP H05324018 A JPH05324018 A JP H05324018A
Authority
JP
Japan
Prior art keywords
sequence
data
control circuit
processor
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP12736492A
Other languages
Japanese (ja)
Inventor
Takashi Yamauchi
孝 山内
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.)
Fanuc Corp
Original Assignee
Fanuc Corp
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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP12736492A priority Critical patent/JPH05324018A/en
Publication of JPH05324018A publication Critical patent/JPH05324018A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To increase the processing speed of the control circuit of the PC which executes sequence instructions. CONSTITUTION:A processor 1 reads two sequence instructions of the same address out of a memory 3 for a sequence program in one execution cycle at the same time, and reads data of two sequence instructions, reads in the last execution cycle out of a dual-port RAM 2 and processes them in the same execution cycle. Consequently, the reading and processing of two sequence instructions can be performed at the same time in one execution cycle.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はシーケンス命令を実行す
るPC(プログラマブル・コントローラ)の制御回路に
関し、特にシーケンス命令の読み込みと処理とを同時に
行うことのできるPCの制御回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control circuit for a PC (programmable controller) that executes a sequence command, and more particularly to a control circuit for a PC that can simultaneously read and process a sequence command.

【0002】[0002]

【従来の技術】一般に、PCでシーケンス命令を実行す
る場合には、ビットアドレス単位でデータ処理が行われ
ている。このため、制御回路には、PC専用のプロセッ
サが用いられることが多い。このPCで制御する機械点
数は年々増大しており、処理速度の高速化が重要となっ
ている。
2. Description of the Related Art Generally, when a sequence instruction is executed by a PC, data processing is performed in bit address units. Therefore, a processor dedicated to the PC is often used for the control circuit. The number of machines controlled by this PC is increasing year by year, and it is important to increase the processing speed.

【0003】処理速度を高速にする方法としては、ま
ず、シーケンス命令や演算データを格納するメモリにア
クセスタイムが高速なものを使用し、シーケンス命令の
読み込み時間やデータ演算時間を短くする方法がある。
また、シーケンス命令を格納するメモリのデータ幅を広
くし、命令コードやオペランドの読み込みサイクルを短
くする方法がある。
As a method of increasing the processing speed, first, there is a method of shortening the reading time of the sequence instruction and the data operation time by using a memory for storing the sequence instruction and the operation data with a high access time. ..
There is also a method of widening the data width of the memory for storing the sequence instruction and shortening the read cycle of the instruction code and the operand.

【0004】しかし、これらの方法だけでは、処理速度
にも限界がある。そこで、シーケンス命令を格納するメ
モリのバスと、演算データを格納するメモリのバスとを
分離してプロセッサと結合する方法が一般に用いられて
いる。
However, the processing speed is limited only by these methods. Therefore, a method is generally used in which a memory bus for storing a sequence instruction and a memory bus for storing operation data are separated and coupled to a processor.

【0005】図4は各メモリのバスを分離してプロセッ
サと結合させた従来のPCの制御回路の概略構成を示す
ブロック図である。プロセッサ21はPC専用に製造さ
れたものであり、ビットアドレス単位でデータを処理す
る。プロセッサ21は、制御信号線C1、アドレスバス
A1、およびデータバスD1を介して、RAM22およ
びインタフェース回路24と結合されている。また、プ
ロセッサ21は、制御信号線C2、アドレスバスA2、
およびデータバスD2を介してシーケンスプログラム用
メモリ23と結合されている。
FIG. 4 is a block diagram showing a schematic configuration of a control circuit of a conventional PC in which buses of respective memories are separated and combined with a processor. The processor 21 is manufactured exclusively for a PC and processes data in bit address units. The processor 21 is coupled to the RAM 22 and the interface circuit 24 via the control signal line C1, the address bus A1, and the data bus D1. The processor 21 also includes a control signal line C2, an address bus A2,
And a sequence program memory 23 via a data bus D2.

【0006】次に、このような従来のPCの制御回路に
よるシーケンス命令の実行手順を示す。図5はラダープ
ログラムの一例を示す図である。ここで、WA〜WFは
信号名称である。このラダープログラムをコーディング
すると以下のようになる。
Next, a procedure of executing a sequence instruction by the control circuit of such a conventional PC will be described. FIG. 5 is a diagram showing an example of a ladder program. Here, WA to WF are signal names. The code of this ladder program is as follows.

【0007】 RD WA AND.NOT WB AND WC AND WD OR WE WRT WF プロセッサ21は、このシーケンスプログラムを命令番
号〜まで順番に実行していく。
RD WA AND. NOT WB AND WC AND WD OR WE WRT WF The processor 21 sequentially executes this sequence program from the instruction number to.

【0008】図6はこのラダープログラムを従来のPC
の制御回路によって実行する場合の手順を示すタイムチ
ャートである。プロセッサ21は、まず、命令番号の
シーケンス命令を1実行サイクル内にシーケンスプログ
ラム用メモリ23から読み込んでくる(F)。そし
て、次の実行サイクルで命令番号のシーケンス命令を
実行し(E)、その一方で、命令番号のシーケンス
命令を読み込んでくる(F)。ここで、シーケンス命
令の実行とは、そのシーケンス命令に必要なデータをプ
ロセッサ21がRAM22から読み込み、さらにそれを
命令通りに演算処理することを言う。
FIG. 6 shows this ladder program in a conventional PC.
3 is a time chart showing a procedure when the control circuit of FIG. The processor 21 first reads the sequence instruction with the instruction number from the sequence program memory 23 within one execution cycle (F). Then, in the next execution cycle, the sequence instruction with the instruction number is executed (E), while the sequence instruction with the instruction number is read in (F). Here, the execution of the sequence instruction means that the processor 21 reads the data necessary for the sequence instruction from the RAM 22 and further processes it according to the instruction.

【0009】こうして、以下、命令番号まで同様の処
理が繰り返される。このように、従来のPCの制御回路
では、RAM22とシーケンスプログラム用メモリ23
とを別のバスを介してプロセッサ21と結合させること
により、プロセッサ21では、シーケンス命令の読み込
みとその実行を1実行サイクル内で同時に行うようにし
ている。
In this way, the same processing is repeated until the instruction number. As described above, in the conventional PC control circuit, the RAM 22 and the sequence program memory 23 are used.
By coupling and with the processor 21 via another bus, the processor 21 simultaneously reads the sequence instruction and executes it in one execution cycle.

【0010】[0010]

【発明が解決しようとする課題】しかし、従来のPCの
制御回路では、1実行サイクル内では読み込みおよび実
行ともに一つのシーケンス命令しか取り扱うことができ
なかった。このため、処理速度に限界があった。
However, the control circuit of the conventional PC can handle only one sequence instruction for both reading and executing within one execution cycle. Therefore, the processing speed is limited.

【0011】そこで、さらに高速化を図る方法として、
シーケンスプログラム用メモリ23のデータバスD2の
データ幅をシーケンス命令の語長の整数倍とし、プロセ
ッサ21側にもそれに対応するデータバスを設けること
により、複数のシーケンス命令を同時に読み込んで実行
するようにする方法が考えられる。
Therefore, as a method for further increasing the speed,
The data width of the data bus D2 of the sequence program memory 23 is set to an integer multiple of the word length of the sequence instruction, and the processor 21 side is also provided with a corresponding data bus so that a plurality of sequence instructions can be simultaneously read and executed. There are possible ways to do it.

【0012】しかし、RAM22からのデータのアクセ
スは一つずつ順番にしか行えず、さらに、従来のプロセ
ッサ21には、複数のデータの演算処理を同時に行う機
能が設けられていない。このため、シーケンス命令を複
数同時に読み込めても、実際に演算を行う場合には一つ
ずつしかデータを扱うことができない。特にPCにおい
ては、シーケンス命令の大半がデータメモリのアクセス
を必要とするので、データのアクセス時間が従来と同じ
では、高速化を期待することができない。
However, the data from the RAM 22 can be accessed only one by one, and the conventional processor 21 is not provided with the function of simultaneously performing the arithmetic processing of a plurality of data. For this reason, even if a plurality of sequence commands can be read at the same time, in actual calculation, only one data can be handled at a time. Particularly in the PC, most of the sequence instructions require access to the data memory, so if the data access time is the same as the conventional one, it is not possible to expect high speed.

【0013】本発明はこのような点に鑑みてなされたも
のであり、処理速度をより高速化することのできるPC
の制御回路を提供することを目的とする。
The present invention has been made in view of the above points, and a PC capable of further increasing the processing speed.
It is an object of the present invention to provide a control circuit of.

【0014】[0014]

【課題を解決するための手段】本発明では上記課題を解
決するために、シーケンス命令を実行するPC(プログ
ラマブル・コントローラ)の制御回路において、同一ア
ドレスに複数のシーケンス命令が格納されるシーケンス
プログラム用メモリと、データが格納されたマルチポー
トRAMと、1実行サイクル中に前記同一アドレスの複
数のシーケンス命令を同時に読み込み、かつ同実行サイ
クル中に前回実行サイクルで読み込んだ複数のシーケン
ス命令のデータを前記マルチポートRAMから読み込ん
で処理するプロセッサと、を有することを特徴とするP
Cの制御回路が提供される。
According to the present invention, in order to solve the above problems, in a control circuit of a PC (programmable controller) for executing a sequence instruction, a sequence program for storing a plurality of sequence instructions at the same address. The memory, the multi-port RAM in which the data is stored, the plurality of sequence instructions at the same address are simultaneously read in one execution cycle, and the data of the plurality of sequence instructions read in the previous execution cycle during the same execution cycle A processor for reading from a multiport RAM and processing the P.
A C control circuit is provided.

【0015】[0015]

【作用】プロセッサは、1実行サイクル中に同一アドレ
スの複数のシーケンス命令を同時にシーケンスプログラ
ム用メモリから読み込み、かつ同実行サイクル中に前回
実行サイクルで読み込んだ複数のシーケンス命令のデー
タをマルチポートRAMから読み込んで処理する。これ
により、1実行サイクル中に複数のシーケンス命令の読
み込みと処理とを同時に行うことができる。
In the processor, the plurality of sequence instructions having the same address are simultaneously read from the sequence program memory during one execution cycle, and the data of the plurality of sequence instructions read in the previous execution cycle during the same execution cycle are read from the multiport RAM. Read and process. As a result, a plurality of sequence instructions can be read and processed simultaneously in one execution cycle.

【0016】[0016]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本実施例のPCの制御回路の概略構成を
示すブロック図である。本実施例のPCの制御回路は、
主にPC専用のプロセッサ1、デュアルポートRAM
2、シーケンスプログラム用メモリ3、およびインタフ
ェース回路4から構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of a control circuit of the PC of this embodiment. The control circuit of the PC of this embodiment is
Mainly PC dedicated processor 1, dual port RAM
2, a sequence program memory 3, and an interface circuit 4.

【0017】デュアルポートRAM2は、一般市販され
ているRAMの一種で、2つのポートP0およびポート
P1を有しており、2つのポートから同時にアクセスす
ることができる。ポートP0は、制御信号線CS1、ア
ドレスバスAB1、およびデータバスDB1を介してプ
ロセッサ1と結合されている。一方、ポートP1は、制
御信号線CS2、アドレスバスAB2、およびデータバ
スDB2を介してプロセッサ1およびインタフェース回
路4と結合されている。
The dual port RAM 2 is a kind of RAM which is commercially available and has two ports P0 and P1 and can be simultaneously accessed from the two ports. The port P0 is coupled to the processor 1 via the control signal line CS1, the address bus AB1, and the data bus DB1. On the other hand, the port P1 is coupled to the processor 1 and the interface circuit 4 via the control signal line CS2, the address bus AB2, and the data bus DB2.

【0018】シーケンスプログラム用メモリ3には、同
一アドレスに2つのシーケンス命令が格納されている。
プロセッサ1は、シーケンスプログラム用メモリ3から
2つのシーケンス命令を同時に読み込むと、次の実行サ
イクルで各シーケンス命令で取り扱うデータをデュアル
ポートRAM2から同時に読み込む。ただし、2つのデ
ータを読み込む場合には、一方のデータをポートP0か
ら、他方のデータをポートP1から読み込む。
The sequence program memory 3 stores two sequence instructions at the same address.
When the processor 1 reads two sequence instructions simultaneously from the sequence program memory 3, the processor 1 reads the data handled by each sequence instruction simultaneously from the dual port RAM 2 in the next execution cycle. However, when reading two data, one data is read from the port P0 and the other data is read from the port P1.

【0019】プロセッサ1は、シーケンスプログラム用
メモリ3から読み込んだシーケンス命令が書き込み命令
の場合には、その命令に従ってデータをデュアルポート
RAM2に書き込む。
When the sequence command read from the sequence program memory 3 is a write command, the processor 1 writes data in the dual port RAM 2 according to the command.

【0020】また、プロセッサ1は、図示されていない
スイッチ等からのデータをインタフェース回路4を介し
てデュアルポートRAM2に書き込む。さらに、プロセ
ッサ1は、デュアルポートRAM2内のデータをインタ
フェース回路4を介して図示されていないリレー等に送
る。このデュアルポートRAM2とインタフェース回路
4との間のデータのやり取りは、ポートP1によって行
われる。
The processor 1 also writes data from a switch (not shown) or the like into the dual port RAM 2 via the interface circuit 4. Further, the processor 1 sends the data in the dual port RAM 2 to a relay (not shown) or the like via the interface circuit 4. Data is exchanged between the dual port RAM 2 and the interface circuit 4 by the port P1.

【0021】図2はプロセッサ1内部の構成を示すブロ
ック図である。プロセッサ1にはコントロール回路11
が設けられており、プロセッサ1内の回路全体を制御す
る。コントロール回路11は、1実行サイクル毎に同一
アドレスに格納された2つのシーケンス命令をシーケン
スプログラム用メモリ3からデータバスDB3を介して
読み込む。
FIG. 2 is a block diagram showing the internal structure of the processor 1. The processor 1 has a control circuit 11
Is provided and controls the entire circuit in the processor 1. The control circuit 11 reads two sequence instructions stored in the same address for each execution cycle from the sequence program memory 3 via the data bus DB3.

【0022】コントロール回路11は、シーケンスプロ
グラム用メモリ3から読み込んだ各シーケンス命令を解
読し、次の実行サイクルで、それぞれのシーケンス命令
で扱うデータをデュアルポートRAM2の各ポートP0
およびP1から読み込む。ここで、各データの読み込み
は、各制御信号線CS1およびCS2にリード制御信号
を、また、各アドレスバスAB1およびAB2にアドレ
スデータを送ることにより実行される。
The control circuit 11 decodes each sequence instruction read from the sequence program memory 3 and, in the next execution cycle, handles the data handled by each sequence instruction in each port P0 of the dual port RAM 2.
And read from P1. Here, reading of each data is executed by sending a read control signal to each control signal line CS1 and CS2 and sending address data to each address bus AB1 and AB2.

【0023】これにより、デュアルポートRAM2から
は、データバスDB1およびDB2を介して2つのデー
タが同時にプロセッサ1に読み込まれる。なお、2つの
データの読み込みは、実行順番の早い方のデータがポー
トP0のデータバスDB1から、遅い方のデータがポー
トP1のデータバスDB2から読み込まれる。データバ
スDB1から読み込まれたデータはマルチプレクサ(M
UX)12に、データバスDB2から読み込まれたデー
タはマルチプレクサ(MUX)13に、それぞれ送られ
る。
As a result, two data are simultaneously read from the dual port RAM 2 into the processor 1 via the data buses DB1 and DB2. In reading the two data, the earlier data is read from the data bus DB1 of the port P0, and the later data is read from the data bus DB2 of the port P1. The data read from the data bus DB1 is the multiplexer (M
UX) 12 and the data read from the data bus DB2 are sent to the multiplexer (MUX) 13, respectively.

【0024】コントロール回路11は、各マルチプレク
サ12および13にそれぞれデータが送られると、まず
マルチプレクサ12にビットアドレス選択信号を送り、
適度なタイミングを計ってからマルチプレクサ13にビ
ットアドレス選択信号を送る。
When data is sent to each of the multiplexers 12 and 13, the control circuit 11 first sends a bit address selection signal to the multiplexer 12,
A bit address selection signal is sent to the multiplexer 13 after measuring an appropriate timing.

【0025】また、コントロール回路11は、シーケン
スプログラム用メモリ3から読み込んだ各シーケンス命
令を解読し、演算器(ALU)14および演算器(AL
U)15のそれぞれに、AND、ORの演算を行うため
の演算指令信号を送る。ただし、ここでは、演算指令信
号は先に演算器14に送られる。
Further, the control circuit 11 decodes each sequence instruction read from the sequence program memory 3, and the arithmetic unit (ALU) 14 and the arithmetic unit (AL).
U) sends an operation command signal to each of the AND and OR operations. However, here, the calculation command signal is sent to the calculator 14 first.

【0026】さらに、コントロール回路11は、シーケ
ンスプログラム用メモリ3から読み込んだシーケンス命
令に書き込み命令がある場合には、データ置換回路17
またはデータ置換回路18にデータ書き込み信号を送
る。
The control circuit 11 further includes a data replacement circuit 17 when a sequence command read from the sequence program memory 3 has a write command.
Alternatively, a data write signal is sent to the data replacement circuit 18.

【0027】このように、各回路に演算指令を送る一方
で、コントロール回路11は次のシーケンス命令をシー
ケンスプログラム用メモリ3から読み込む。すなわち、
コントロール回路11は、1実行サイクル中にシーケン
ス命令を読み込むと同時に、前回の実行サイクルで読み
込んだシーケンス命令を実行する。
As described above, the control circuit 11 reads the next sequence command from the sequence program memory 3 while sending the operation command to each circuit. That is,
The control circuit 11 reads the sequence instruction in one execution cycle and, at the same time, executes the sequence instruction read in the previous execution cycle.

【0028】マルチプレクサ12には、データバスDB
1を介して例えば16ビットのデータが入力される。マ
ルチプレクサ12は、コントロール回路11からビット
アドレス選択信号を受け取ると、指定されたビットアド
レスにあるビットデータのみを取り出して演算器14に
送る。
The multiplexer 12 has a data bus DB
For example, 16-bit data is input via 1. Upon receiving the bit address selection signal from the control circuit 11, the multiplexer 12 takes out only the bit data at the specified bit address and sends it to the arithmetic unit 14.

【0029】一方、マルチプレクサ13には、データバ
スDB2を介して同じく16ビットのデータが入力され
る。マルチプレクサ13は、コントロール回路11から
ビットアドレス選択信号を受け取ると、指定されたビッ
トアドレスにあるビットデータのみを取り出して演算器
15に送る。
On the other hand, 16-bit data is also input to the multiplexer 13 via the data bus DB2. Upon receiving the bit address selection signal from the control circuit 11, the multiplexer 13 takes out only the bit data at the specified bit address and sends it to the calculator 15.

【0030】演算器14は、コントロール回路11から
の演算指令信号に従って、マルチプレクサ12から送ら
れるビットデータと後述のアキュームレータ(ACC)
16からの最終演算結果データとを演算し、その演算結
果データを演算器15に送る。
The arithmetic unit 14 receives the bit data sent from the multiplexer 12 and an accumulator (ACC), which will be described later, according to the arithmetic command signal from the control circuit 11.
The final calculation result data from 16 is calculated, and the calculation result data is sent to the calculator 15.

【0031】演算器15は、コントロール回路11から
の演算指令信号に従って、マルチプレクサ13から送ら
れるビットデータと演算器14から送られる演算データ
とを演算し、その最終演算結果データをアキュームレー
タ16に送る。
The computing unit 15 computes the bit data sent from the multiplexer 13 and the computing data sent from the computing unit 14 according to the computing command signal from the control circuit 11, and sends the final computing result data to the accumulator 16.

【0032】アキュームレータ16は、この最終演算結
果データを受け取ると、新たな最終演算結果データが送
られるまでその値を保持し、その間、演算器14、デー
タ置換回路17およびデータ置換回路18に送る。
Upon receipt of the final operation result data, the accumulator 16 holds the value until new final operation result data is sent, and during that time, sends it to the operator 14, the data replacement circuit 17, and the data replacement circuit 18.

【0033】データ置換回路17は、コントロール回路
11からデータ書き込み信号が送られると、最終演算結
果データを他の演算しないビットと合成してデータバス
DB1に出力する。すなわち、演算処理が1ビットずつ
処理するのに伴い、他のビットはそのまま演算しない状
態で読み出し、演算処理したビットと同時に該当するア
ドレスに書き込む。また、データ置換回路18において
も同様の処理がなされ、新しいデータがデータバスDB
2に出力される。
When the data write signal is sent from the control circuit 11, the data replacement circuit 17 synthesizes the final operation result data with other bits that are not operated and outputs it to the data bus DB1. That is, as the arithmetic processing processes one bit at a time, the other bits are read out as they are without arithmetic operation, and written to the corresponding address at the same time as the arithmetically processed bits. Similar processing is performed also in the data replacement circuit 18, and new data is transferred to the data bus DB.
2 is output.

【0034】次に、このようなプロセッサ1を有する本
実施例のPCの制御回路によるシーケンス・プログラム
の実行手順を説明する。なお、ここでは、従来技術の説
明で使用した図5のラダープログラムを一例としてその
実行手順を説明する。
Next, the sequence program execution procedure by the control circuit of the PC of this embodiment having such a processor 1 will be described. Here, the execution procedure will be described by taking the ladder program of FIG. 5 used in the description of the related art as an example.

【0035】図5のラダープログラムをコーディングす
ると、以下のようになる。 RD WA AND.NOT WB AND WC AND WD OR WE WRT WF これらのラダープログラムは、シーケンスプログラム用
メモリ3内では、1アドレスに2つのシーケンス命令が
格納されている。すなわち、命令番号ととが同一ア
ドレスに、同じく命令番号と、命令番号ととが
それぞれ同一アドレスに格納されている。
The coding of the ladder program of FIG. 5 is as follows. RD WA AND. NOT WB AND WC AND WD OR WE WRT WF In these ladder programs, two sequence instructions are stored at one address in the sequence program memory 3. That is, the instruction number and the instruction number are stored in the same address, and the instruction number and the instruction number are stored in the same address.

【0036】図3はこのラダープログラムを本実施例の
PCの制御回路によって実行する場合の手順を示すタイ
ムチャートである。プロセッサ1は、まず、命令番号
とのシーケンス命令を1実行サイクル内にシーケンス
プログラム用メモリ3から読み込んでくる(F)。
そして、次の実行サイクルで命令番号およびのシー
ケンス命令を実行し(E)、その一方で、命令番号
およびのシーケンス命令を読み込んでくる(F
)。
FIG. 3 is a time chart showing the procedure for executing this ladder program by the control circuit of the PC of this embodiment. The processor 1 first reads a sequence instruction with an instruction number from the sequence program memory 3 within one execution cycle (F).
Then, in the next execution cycle, the sequence instruction with the instruction number and is executed (E), while the sequence instruction with the instruction number and is read in (F).
).

【0037】命令番号およびのシーケンス命令を読
み込むと、次の実行サイクルではこれらを実行し(E
)、その一方で、命令番号およびのシーケンス命
令を読み込む(F)。ここで、命令番号のシーケ
ンス命令は、書き込み命令であるので、次の実行サイク
ルでは命令番号のシーケンス命令のみを実行する(E
)。そして、命令番号を実行した後の実行サイクル
で命令番号のシーケンス命令を実行する。
When the instruction number and the sequence instruction of are read, they are executed in the next execution cycle (E
), On the other hand, reads the sequence number and the sequence instruction of (F). Here, since the sequence instruction of the instruction number is a write instruction, only the sequence instruction of the instruction number is executed in the next execution cycle (E
). Then, the sequence instruction of the instruction number is executed in the execution cycle after executing the instruction number.

【0038】このように、本実施例では、データメモリ
としてデュアルポートRAM2を用い、シーケンスプロ
グラム用メモリ3には同一アドレス中に2つのシーケン
ス命令を格納するようにし、さらに、プロセッサ1の機
能として、同一アドレスに含まれた2つのシーケンス命
令を次の実行サイクル中に同時に実行するようにしたの
で、処理速度の高速化を図ることができる。
As described above, in this embodiment, the dual port RAM 2 is used as the data memory, two sequence instructions are stored in the same address in the sequence program memory 3, and the function of the processor 1 is as follows. Since two sequence instructions included in the same address are executed simultaneously in the next execution cycle, the processing speed can be increased.

【0039】なお、本実施例では、マルチポートRAM
としてデュアルポートRAM2を用いたが、3つ以上の
ポートを有するRAMであっても本発明を実施すること
が可能である。すなわち、1アドレス中のシーケンス命
令をマルチポートRAMのポートの数と同じにし、さら
にプロセッサ1の1実行サイクル中の処理データ数も同
一となるように設計すればよい。
In this embodiment, a multiport RAM is used.
Although the dual port RAM 2 is used as the above, the present invention can be implemented even with a RAM having three or more ports. That is, the sequence instruction in one address may be designed to be the same as the number of ports of the multiport RAM, and the number of processed data in one execution cycle of the processor 1 may be the same.

【0040】[0040]

【発明の効果】以上説明したように本発明では、一つの
プロセッサで1実行サイクル中に複数のシーケンス命令
の読み込みと処理とを同時に行うようにしたので、処理
速度の高速化を図ることができる。
As described above, according to the present invention, a single processor simultaneously reads and processes a plurality of sequence instructions in one execution cycle, so that the processing speed can be increased. ..

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

【図1】本実施例のPCの制御回路の概略構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a control circuit of a PC of this embodiment.

【図2】プロセッサ内部の構成を示すブロック図であ
る。
FIG. 2 is a block diagram showing an internal configuration of a processor.

【図3】ラダープログラムを本実施例のPCの制御回路
によって実行する場合の手順を示すタイムチャートであ
る。
FIG. 3 is a time chart showing a procedure when a ladder program is executed by the control circuit of the PC of this embodiment.

【図4】従来のPCの制御回路の概略構成を示すブロッ
ク図である。
FIG. 4 is a block diagram showing a schematic configuration of a control circuit of a conventional PC.

【図5】ラダープログラムの一例を示す図である。FIG. 5 is a diagram showing an example of a ladder program.

【図6】ラダープログラムを従来のPCの制御回路によ
って実行する場合の手順を示すタイムチャートである。
FIG. 6 is a time chart showing a procedure when a ladder program is executed by a control circuit of a conventional PC.

【符号の説明】[Explanation of symbols]

1 プロセッサ 2 デュアルポートRAM 3 シーケンスプログラム用メモリ 4 インタフェース回路 1 Processor 2 Dual Port RAM 3 Sequence Program Memory 4 Interface Circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 シーケンス命令を実行するPC(プログ
ラマブル・コントローラ)の制御回路において、 同一アドレスに複数のシーケンス命令が格納されるシー
ケンスプログラム用メモリと、 データが格納されたマルチポートRAMと、 1実行サイクル中に前記同一アドレスの複数のシーケン
ス命令を同時に読み込み、かつ同実行サイクル中に前回
実行サイクルで読み込んだ複数のシーケンス命令のデー
タを前記マルチポートRAMから読み込んで処理するプ
ロセッサと、 を有することを特徴とするPCの制御回路。
1. A control circuit of a PC (programmable controller) for executing a sequence instruction, a sequence program memory storing a plurality of sequence instructions at the same address, a multiport RAM storing data, and 1 execution. A processor for simultaneously reading the plurality of sequence instructions of the same address during a cycle, and reading the data of the plurality of sequence instructions read in the previous execution cycle during the same execution cycle from the multiport RAM for processing. Characteristic PC control circuit.
【請求項2】 前記プロセッサ内部には、前記同一アド
レスの複数のシーケンス命令と同数であり、かつ前記シ
ーケンス命令の順番に従って直列に演算を行うように配
列された演算器を有することを特徴とする請求項1記載
のPCの制御回路。
2. The processor has, inside the processor, an arithmetic unit having the same number as the plurality of sequence instructions of the same address and arranged to perform arithmetic operation serially according to the order of the sequence instructions. A control circuit for a PC according to claim 1.
JP12736492A 1992-05-20 1992-05-20 Control circuit for pc Pending JPH05324018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12736492A JPH05324018A (en) 1992-05-20 1992-05-20 Control circuit for pc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12736492A JPH05324018A (en) 1992-05-20 1992-05-20 Control circuit for pc

Publications (1)

Publication Number Publication Date
JPH05324018A true JPH05324018A (en) 1993-12-07

Family

ID=14958138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12736492A Pending JPH05324018A (en) 1992-05-20 1992-05-20 Control circuit for pc

Country Status (1)

Country Link
JP (1) JPH05324018A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010055629A (en) * 2009-11-30 2010-03-11 Panasonic Corp Image audio signal processor and electronic device using the same
US10230991B2 (en) 2003-08-21 2019-03-12 Socionext Inc. Signal-processing apparatus including a second processor that, after receiving an instruction from a first processor, independantly controls a second data processing unit without further instrcuction from the first processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10230991B2 (en) 2003-08-21 2019-03-12 Socionext Inc. Signal-processing apparatus including a second processor that, after receiving an instruction from a first processor, independantly controls a second data processing unit without further instrcuction from the first processor
US11563985B2 (en) 2003-08-21 2023-01-24 Socionext Inc. Signal-processing apparatus including a second processor that, after receiving an instruction from a first processor, independantly controls a second data processing unit without further instruction from the first processor
JP2010055629A (en) * 2009-11-30 2010-03-11 Panasonic Corp Image audio signal processor and electronic device using the same

Similar Documents

Publication Publication Date Title
US4648034A (en) Busy signal interface between master and slave processors in a computer system
US20010032296A1 (en) Data processor
JPH0472272B2 (en)
JPH0248931B2 (en)
JPS63240664A (en) Fast processing computer
JP3579843B2 (en) Digital signal processor
JPH0298707A (en) Programmable controller
JPH05324018A (en) Control circuit for pc
US6249858B1 (en) Information processing apparatus having a CPU and an auxiliary arithmetic unit for achieving high-speed operation
US5819081A (en) Method of executing a branch instruction of jumping to a subroutine in a pipeline control system
JPH01214902A (en) Programmable controller
JP2514473B2 (en) Parallel processor
JPS6122830B2 (en)
JPH0821009B2 (en) CHANNEL CONTROLLER INITIALIZATION METHOD AND SYSTEM FOR THE INITIALIZATION
JP2924643B2 (en) Digital signal processing method and apparatus
JPH0586581B2 (en)
JPS5995646A (en) Arithmetic control system
JP2553630B2 (en) Data processing device
JP2522563B2 (en) Programmable controller
JPS60209873A (en) Vector processing device
JP2692865B2 (en) Sequencer differential instruction processing method
JPH0319570B2 (en)
JPH10177515A (en) Digital signal processor
JPS62145430A (en) Data processor
JPH03164849A (en) Microprocessors and microprocessor systems