JPH03100754A - Cpu control system - Google Patents

Cpu control system

Info

Publication number
JPH03100754A
JPH03100754A JP23796589A JP23796589A JPH03100754A JP H03100754 A JPH03100754 A JP H03100754A JP 23796589 A JP23796589 A JP 23796589A JP 23796589 A JP23796589 A JP 23796589A JP H03100754 A JPH03100754 A JP H03100754A
Authority
JP
Japan
Prior art keywords
data
sub
cpu
ram
main
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP23796589A
Other languages
Japanese (ja)
Other versions
JPH061461B2 (en
Inventor
Sadao Ito
貞夫 伊藤
Atsushi Okubo
敦 大久保
Koichi Ishihara
弘一 石原
Shigeo Hayashi
林 茂男
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.)
RKC Instrument Inc
Original Assignee
Rika Kogyo Inc
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 Rika Kogyo Inc filed Critical Rika Kogyo Inc
Priority to JP1237965A priority Critical patent/JPH061461B2/en
Publication of JPH03100754A publication Critical patent/JPH03100754A/en
Publication of JPH061461B2 publication Critical patent/JPH061461B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To take partial charge of a large quantity of information by CPUs to efficiently process the information by interposing dual port RAMs having data channel areas, main RAMs having data channel areas, and sub-RAMs between a main CPU and sub-CPUs. CONSTITUTION:Dual port RAMs 34a to 34n shared among a main CPU 12 and sub-CPUs 22a to 22n, and a main RAM 14 of the main CPU 12, and sub- RAMs 24a to 24n of sub-CPUs 22a to 22n are provided with data channel areas. Completed data from one CPU is stored in dual port RAMs 34a to 34n with numbers of channels in data channel areas as the medium and this data is read in by the other CPU. Thus, a special processing (data check) as conven tional is unnecessary, and hardware and software are simplified.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、押出機等の温度制御を行う調節計等に組み込
まれるCPUの制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a control system for a CPU incorporated in a controller or the like that controls the temperature of an extruder or the like.

〈従来の技術〉 上記調節計等の場合、取り扱い情報量が多いため、装置
内に複数のCPUを内蔵させ、相互に独立して動作させ
て使用する必要がある。
<Prior Art> In the case of the above-mentioned controller, etc., since the amount of information handled is large, it is necessary to incorporate a plurality of CPUs into the device and operate them independently of each other.

このため、従来は、例えば第5図に示したように、メイ
ンのデーターバス51に、メインCPU52、RAM5
3、その他の部品(ROM、I10ボート等)54を接
続し、サブのデータバス61に、サブCPU62、サブ
RAM63、その他の部品(ROM、I10ボート等)
64を接続して、メインのデータバス51とサブのデー
タバス61間のデータの交換は、デュアルポートRAM
55を通じて行う方式が取られている。
For this reason, conventionally, for example, as shown in FIG.
3. Connect other parts (ROM, I10 board, etc.) 54, and connect the sub CPU 62, sub RAM 63, and other parts (ROM, I10 board, etc.) to the sub data bus 61.
64 is connected, and data exchange between the main data bus 51 and the sub data bus 61 is performed using a dual port RAM.
55 is used.

〈発明が解決しようとする課題〉 ところが、上記第5図のCPU間の制御方式の場合だと
、メインCPU52とサブCPU62とは各々独立に動
作しているため、デュアルポートRAM55上でのデー
タのやりとり等には、特別な処理(例えばデータチエツ
ク)が必要とされた。
<Problems to be Solved by the Invention> However, in the case of the control system between the CPUs shown in FIG. Interactions required special processing (eg, data checks).

例えば、サブCPU62が2バイトずつデータをデュア
ルボー)RAM55に格納する場合、199℃の温度デ
ータを例にとると、ステップ■で01を格納し、ステッ
プ■で99を格納し、その結果として、ステップ■にお
いて0199という値がデュアルボー)RAM55に格
納される。
For example, when the sub CPU 62 stores data 2 bytes at a time in the dual baud RAM 55, taking temperature data of 199°C as an example, it stores 01 in step ■, stores 99 in step ■, and as a result, In step (2), the value 0199 is stored in the dual baud RAM 55.

一方、サブCPU62とメインCPU52とは、夫々独
立してデータ処理を行っているため、メインCPU52
の温度データの読み込みにあっては、前記ステップ■の
0199を読むのであれば、何ら問題がないが、前記ス
テップのとステップ■との間にメインCPU52が温度
データの読み込みを行った場合、データは0100とし
て格納されているため、100℃として認識される恐れ
がある。このため、データを複数回読み込んで、例えば
2回読み、両者が異なる場合には、さらにもう1度読み
込んで、3回目の値を採用する等の処理(データチエツ
ク)が必要であった。
On the other hand, since the sub CPU 62 and the main CPU 52 each independently process data, the main CPU 52
There is no problem in reading the temperature data as long as 0199 in step (2) is read, but if the main CPU 52 reads the temperature data between the above step and step (2), the data Since the temperature is stored as 0100, there is a possibility that it will be recognized as 100°C. For this reason, it is necessary to read the data multiple times, for example twice, and if the two readings are different, it is necessary to read the data one more time and use the third value (data check).

この複数回データを読み込むという処理は、サブCPU
とメインCPUとのデータ交換量が多くなればなるほど
メインCPUの処理速度を低下させる原因となっていた
This process of reading data multiple times is performed by the sub CPU.
The larger the amount of data exchanged between the computer and the main CPU, the more the processing speed of the main CPU decreases.

さらに、メインCPUとサブCPUは相互に独立して動
いているため、一方のCPUで他方のCPUの誤動作が
ないことを監視する必要がある。
Furthermore, since the main CPU and sub CPU operate independently of each other, it is necessary for one CPU to monitor the other CPU for malfunctions.

本発明は、このような従来の問題点に鑑みてなされたも
のである。
The present invention has been made in view of such conventional problems.

〈課題を解決するための手段〉 か〜る本発明の特徴とする点は、メインCPUと1また
は複数のサブCPU間で共存するデュアルポートRAM
中にデータチャンネル領域を設けると共に、前記メイン
CPUのメインRAMおよびサブCPUのサブRAM中
にも夫々データチャンネル領域を設け、前記メインCP
UおよびサブCPU間のデータの入出力を、前記各デー
タチャンネル領域のチャンネル数を判断して、行うCP
U制御方式にある。
<Means for Solving the Problems> The feature of the present invention is that dual port RAM coexists between the main CPU and one or more sub CPUs.
A data channel area is provided in the main CPU, a data channel area is provided in the main RAM of the main CPU, and a data channel area is provided in the sub RAM of the sub CPU, respectively.
A CPU that performs data input/output between the U and sub CPUs by determining the number of channels in each data channel area.
It is in the U control system.

く作用〉 本発明では、このようにメインCPUと1または複数の
サブCPU間に、データチャンネル領域を有するデュア
ルボー)RAMと、同じくデータチャンネル領域を有す
るメインRAMおよびサブRAMを介在させであるため
、簡単なハードウェア構成で、大量の情報を各CPU間
で分担してスムーズにかつ効率的に処理することができ
る。
In the present invention, as described above, the dual-baud RAM having a data channel area, and the main RAM and sub-RAM also having a data channel area are interposed between the main CPU and one or more sub CPUs. With a simple hardware configuration, a large amount of information can be shared between each CPU and processed smoothly and efficiently.

〈実施例〉 第1図は本発明に係るCPU制御方式の概略になる一実
施例を示したものである。
<Embodiment> FIG. 1 shows an embodiment of the CPU control method according to the present invention.

図において、12はメインCPU514はメインRAM
、22a−nは各々独立に制御を行いメインCPU12
とも独立しているサブCPU、24a−nはサブRAM
、34a−nは上記これらのメインCPU12と各サブ
CPU22a〜nとの間で共有されているデュアルボー
)RAMである。
In the figure, 12 is the main CPU 514, the main RAM
, 22a-n are independently controlled by the main CPU 12.
24a to 24a are independent sub CPUs, and 24a-n are sub RAMs.
, 34a-n are dual-baud RAMs shared between the main CPU 12 and each of the sub-CPUs 22a-n.

同図では、説明の都合上、デュアルボー)RAM34a
とこれに対応したメインRAM14の記憶領域14a部
分は拡大して示しであるが、他のデュアルポートRAM
34b−n、メインRj6M14の記憶領域14b−n
も同様である。
In the figure, for convenience of explanation, dual baud) RAM 34a
The corresponding storage area 14a of the main RAM 14 is shown enlarged, but other dual port RAM
34b-n, main Rj6M14 storage area 14b-n
The same is true.

上記メインRAM14内には、このようにサブCPU2
2a−nに対応した記憶領域14a−nと、その他、メ
インCPU12により入出力制御される多数のデータの
記憶領域14xが確保されている。
In the main RAM 14, there is a sub CPU 2 like this.
Storage areas 14a-n corresponding to 2a-n and storage areas 14x for a large number of data whose input/output is controlled by the main CPU 12 are secured.

そして、サブCPU22 aに対応する記憶領域14a
は、デュアルボー)RAM34 aからデータを取り込
む領域(図中上段)と、デュアルボー)RAM34aに
データを送るデータをストックしておく領域(図中下段
)により構成されている。
Then, the storage area 14a corresponding to the sub CPU 22a
The dual baud) RAM 34a is comprised of an area (upper part in the figure) for reading data from the dual baud RAM 34a, and an area (lower part in the figure) for storing data to be sent to the dual baud RAM 34a.

また、上記デュアルポートRAM34a−nはサブRA
M24axnの数と対応しており、このサブRAM24
axnとメインRAM14間のデータの交換時の記憶領
域を有している。
In addition, the dual port RAM 34a-n is a sub-RA
It corresponds to the number of M24axn, and this sub-RAM24
It has a storage area for data exchange between axn and the main RAM 14.

さらに、図示のデュアルポートRAM34 aから明ら
かなように、このデュアルポートRAM34a中には、
サブRAM24 aからメインRAM14ヘデータを送
る場合に使用され、サブCPU22aの制御下でサブR
AM24 aか“ら1つ1つのデータが決められた順番
通り書き込まれるデー夕領域51〜、と、メインRAM
14からサブRAM24aヘデータを送る場合に使用さ
れ、メインCPU12の制御下でメインRAM14から
1つ1つデータが決められた順番通り書き込まれるデー
タ領域6I−1とがある。
Furthermore, as is clear from the illustrated dual port RAM 34a, this dual port RAM 34a includes:
It is used when sending data from the sub RAM 24a to the main RAM 14, and is used when sending data from the sub RAM 24a to the main RAM 14.
A data area 51 to which data is written one by one from AM24a in a predetermined order, and a main RAM.
There is a data area 6I-1 which is used when sending data from the main RAM 14 to the sub-RAM 24a, and in which data is written one by one from the main RAM 14 in a predetermined order under the control of the main CPU 12.

また、デュアルポートRAM34a中には、サブRAM
24 aからこのデュアルポートRAM34aへのデー
タ書き込み後、書き込んだデータ隘が記憶されるデータ
チャンネル領域1と、メインRAM14からデュアルボ
ー)RAM34aへのデータ書き込み後、書き込んだデ
ータNαが記憶されるデータチャンネル領域3とがある
In addition, the dual port RAM 34a includes a sub RAM
After data is written from the main RAM 14 to the dual port RAM 34a, the data channel area 1 is where the written data is stored. After data is written from the main RAM 14 to the dual port RAM 34a, the data channel area 1 is where the written data Nα is stored. There is a region 3.

このデータチャンネル領域1はメインRAMI4中のデ
ータチャンネル領域2と対応しており、データチャンネ
ル領域3はサブRAM24a中のデータチャンネル領域
4と対応している。
The data channel area 1 corresponds to the data channel area 2 in the main RAMI 4, and the data channel area 3 corresponds to the data channel area 4 in the sub RAM 24a.

デュアルポートRAM34b〜n、サブRAM24 b
 〜n sメインRAMメインRAM14b〜nも同様
な構成となっている。
Dual port RAM34b~n, sub RAM24b
~ns Main RAM The main RAMs 14b to 14n have a similar configuration.

以上のように構成される本発明では、例えば外部の測定
手段等からのデータがサブCPU22 aの制御下でサ
ブRAM24aに記憶される。
In the present invention configured as described above, data from, for example, external measuring means is stored in the sub-RAM 24a under the control of the sub-CPU 22a.

その後、サブCPU22 aはそのデータをもとに演算
、制御等を行うと同時にそのデータをデュアルボー)R
AM34aの指定のデータ領域5.〜7に書き込む。そ
して、さらにデータチャンネル領域1へは現在書き終え
たチャンネル数を入れる。
After that, the sub CPU 22a performs calculations, controls, etc. based on the data, and at the same time transfers the data to dual baud)R.
Specified data area of AM34a5. ~Write in 7. Further, the number of channels currently written is entered into the data channel area 1.

一方、メインCPU12の制御下で、デュアルポートR
AM34 aの指定のデータ領域5.〜7によりデータ
を読み込むわけであるが、メインRAM14上の自己の
データチャンネル領域2のチャンネル数、例えばmと、
デュアルボー)RAM34a上のデータチャンネル領域
lのチャンネル数、例えばlとを比較して、その読み込
みを行う。
On the other hand, under the control of the main CPU 12, the dual port R
Specified data area of AM34a5. 7, the number of channels in the own data channel area 2 on the main RAM 14, for example m,
The number of channels in the data channel area l on the dual baud (dual baud) RAM 34a is compared with, for example, l, and the data is read.

この間のより詳細な動作を示すと、第2図のフローチャ
ートの如くである。
The detailed operation during this time is shown in the flowchart of FIG.

このフローチャートは、基本的には、ある一定期間(例
えば200m5)毎に繰り返して動作するプログラムで
ある(ただし、メインCPUの負荷によっては、この一
定期間で実行されない場合が生じることもある)。
This flowchart is basically a program that repeatedly operates every certain fixed period (for example, 200 m5) (however, depending on the load on the main CPU, it may not be executed within this fixed period).

先ず、ステップ1で、データチャンネル領域1のチャン
ネル数lが、前回のサンプリングと同じ値かを判断する
。前回のサンプリングの値は、データチャンネル領域2
に記憶されているチャンネル数mであるのでlとmの比
較となる。
First, in step 1, it is determined whether the number l of channels in data channel area 1 is the same value as the previous sampling. The value of the previous sampling is in the data channel area 2.
Since the number of channels stored in is m, it is a comparison between l and m.

サブCPU22aはデュアルボー1−RAM34aにデ
ータの書き込みを200m5等の一定期間毎に必ず行う
ので、正常に動作している場合には、データチャンネル
領域1のチャンネル数!は必ず更新されるずなので、通
常はNOでステップ2へ移る。
Since the sub CPU 22a always writes data to the dual baud 1-RAM 34a at regular intervals such as 200m5, if the sub CPU 22a is operating normally, the number of channels in the data channel area 1! is sure to be updated, so normally, the answer is NO and the process moves to step 2.

このステップ2では、エラーカウント値にのカウント値
をゼロ(0)にする。
In step 2, the error count value is set to zero (0).

そして、ステップ3〜7では、メインCPUI2の制御
下でデュアルボー)RAM34a内の最新データを繰り
返し読み込んで、メインRAMI4に書き込む動作を行
う。
In steps 3 to 7, the latest data in the dual baud RAM 34a is repeatedly read and written to the main RAMI 4 under the control of the main CPU 2.

ステップ3〜5では、今回読み込むデュアルポートRA
M34aのデータ領域を求める計算を行う。
In steps 3 to 5, the dual port RA to be read this time
Perform calculations to obtain the data area of M34a.

つまり、ステップ3では、前1回読み終えたデータ領域
mに1を加え、ステップ4では、1を加えたことで、デ
ュアルボー)RAM34 aのデータ領域の最大値nを
越えていないかを判断し、越えていれば、ステップ5で
、mを1とする。越えていなければ、ステップ6に移る
That is, in step 3, 1 is added to the data area m that has been read once before, and in step 4, it is determined whether the addition of 1 exceeds the maximum value n of the data area of the dual baud RAM 34a. If it exceeds, m is set to 1 in step 5. If not, move on to step 6.

このステップ6では、上記ステップ3〜5で決めた今回
読み込むデュアルボー1−RAM34 aのデータ領域
mを読み込んで、データチャンネル領域2の値(デュア
ルボー)RAM34aがらメインRAM14aに読み終
えたデータ領域番号)を更新してmとする。
In this step 6, the data area m of the dual baud 1-RAM 34a to be read this time determined in steps 3 to 5 above is read, and the data area number that has been read from the data channel area 2 (dual baud) RAM 34a to the main RAM 14a. ) is updated to m.

ステップ7では、ステップ6で更新したデータチャンネ
ル領域2の値(デュアルボー)RAM34aからメイン
RAM 14 aに読み終えたデータ領域番号)とデー
タチャンネル領域lの値(サブRAM24aからデュア
ルポートRAM24 aに読み終えたデータ領域番号)
を比較し、同じなら、デュアルボー)RAM34a上の
新しいデータはすべて読み込み終えたことになるため、
ステップ11で終了する。異なるなら、まだ読み込んで
いない新しいデータがあるため、ステップ3へ戻り、す
べてのデータを読み込むまで、ステップ3〜7を繰り返
し行う。
In step 7, the value of data channel area 2 updated in step 6 (the data area number that has been read from the dual baud RAM 34a to the main RAM 14a) and the value of data channel area l (read from the sub RAM 24a to the dual port RAM 24a) are updated. completed data area number)
If they are the same, it means that all new data on RAM34a (dual baud) has been read.
The process ends at step 11. If it is different, there is new data that has not been read yet, so return to step 3 and repeat steps 3 to 7 until all data is read.

ステップ8〜lOでは、データチャンネル領域1のチャ
ンネル数lが書き変わらなかった場合のエラー処理を行
うフローで、異常時の処理が行われる。つまり、ステッ
プ1でYESと判断された回数をステップ8でカウント
し、ステップ9である指定の回数(E)を越えた場合に
サブCPUの故障等のエラーと判断し、ステップ10で
エラー処理を行う、指定の回数(E)を越えない場合に
は、ステップ11で終了する。
In steps 8 to 1O, abnormality processing is performed in accordance with the flow for performing error processing when the number of channels l in the data channel area 1 is not rewritten. In other words, the number of times YES is determined in step 1 is counted in step 8, and if it exceeds the specified number of times (E) in step 9, it is determined that there is an error such as a failure of the sub CPU, and error processing is performed in step 10. If the specified number of times (E) is not exceeded, the process ends in step 11.

メインRAM 14 aからサブRAM24aへのデー
タの転送もサブRAM24 a上の自己のデータチャン
ネル領域4のチャンネル数、例えばmとデュアルポート
RAM34a上のデータチャンネル領域3のチャンネル
数、例えばl′とを使用して同様に行われる。
Transfer of data from the main RAM 14a to the sub RAM 24a also uses the number of channels in its own data channel area 4 on the sub RAM 24a, for example m, and the number of channels in the data channel area 3 on the dual port RAM 34a, for example l'. and the same is done.

次に、第3図は本発明に係るCPU1111方式を温度
制御等の調節計に適用した場合の具体例の一例を示した
ものである。
Next, FIG. 3 shows a specific example in which the CPU 1111 system according to the present invention is applied to a controller for temperature control, etc.

この調節計において、11はメイン系統のメインデータ
バスで、これにはメインCPU12、このメインCPU
12のプログラム等が格納されるメインROM13、メ
インCPU12のためのデータ等が格納されるメインR
AM14、各種のメイン入力ボート161〜,1、各種
のメイン出力ボート17.〜7等が夫々接続されている
In this controller, 11 is the main data bus of the main system, which includes the main CPU 12, this main CPU
A main ROM 13 stores 12 programs, etc., and a main R stores data, etc. for the main CPU 12.
AM14, various main input boats 161~, 1, various main output boats 17. ~7 etc. are connected respectively.

一方、21 axnは、複数のサブ系統a ”−nのサ
ブデータバスで、これらにも、サブCPU22a −n
 、これらのサブCPU22axnのプログラム等が格
納されたサブROM23a−n、サブCPU22a〜n
のためのデータ等が格納されるサブRAM24a−n、
各種のサブ入力ポート26 a I#ll ”” n 
+#fi 、各種のサブ出力ボート27a重〜、〜n1
〜1等が夫々接続されている。
On the other hand, 21 axn is a sub data bus of a plurality of sub systems a''-n, and these also have sub CPUs 22a-n
, sub ROM 23a-n in which programs etc. of these sub-CPUs 22axn are stored, and sub-CPUs 22a-n.
Sub-RAMs 24a-n in which data etc. for
Various sub-input ports 26 a I#ll ”” n
+#fi, various sub output boats 27a heavy ~, ~n1
~1 etc. are connected respectively.

そして、上記メイン系統のメインデータバス11と、サ
ブ系統a ”−nのサブデータバス21a〜nとの間に
は、上述したデータ領域51#ll +  61〜7、
データチャンネル領域1.3等が内蔵された、夫、々デ
エアルボー)RAM34a−nが接続されている。
Between the main data bus 11 of the main system and the sub data buses 21a to 21a to n of the sub system a''-n, the data areas 51#ll+61 to 7, as described above, are provided.
RAMs 34a to 34a, which have data channel areas 1.3, etc. built-in, are connected thereto.

ここで、複数のサブ系統a ”−nを設けであるのは、
最近の調節計の場合、多数の測定点等に対応する必要が
ある等、データの取り扱い量が飛躍的に増大して来てい
るからである。
Here, the reason for providing multiple subsystems a''-n is as follows.
This is because, in the case of recent controllers, the amount of data handled has increased dramatically, such as the need to handle a large number of measurement points.

例えば、第4図に示した如き押出機40の温度制御を例
に取れば、上記のような結線からなる調節計41を用い
る場合、複数の領域(部位)1〜nで、多数の温度セン
サ42 (1)〜(7) により温度測定を行い、その
結果に対応して、複数の加熱ヒータ43(1)〜。)に
より押出機40の所望部位を分担加熱させる必要がある
からである。
For example, if we take the temperature control of the extruder 40 as shown in FIG. 42 (1) to (7), and a plurality of heaters 43 (1) to 43 (1) to 43 (1) to 42 (7) are used to measure the temperature according to the results. ), it is necessary to heat the desired portions of the extruder 40 in a shared manner.

従うて、上記1個の領域を1チヤンネルとして1個のサ
ブCPU22a−nに例えば8チャンネル分ずつ分担さ
せるようにしである。
Therefore, one area is considered to be one channel, and one sub-CPU 22a-n is assigned to, for example, eight channels.

次に、このような本発明方式を導入した調節計41の動
作を説明すると、以下の如くである。
Next, the operation of the controller 41 incorporating the method of the present invention will be explained as follows.

この本調節計41では、温度制御にあたって、メインC
PU12の各種のメイン入力ポート16、〜ヵのキー人
力や、スイッチ操作等を通じて、各部位での設定温度(
SV)や、PID定数、時間、警報の有無等が設定され
、それらの設定内容は、メインRAM14に記憶される
。また、その際の設定値等は、メイン出力ボート17.
〜7の表示器を通じて計器前面等に表示される。
In this controller 41, the main C
The set temperature (
SV), PID constant, time, presence or absence of an alarm, etc. are set, and the contents of these settings are stored in the main RAM 14. Also, the setting values etc. at that time are as follows: Main output port 17.
It is displayed on the front of the instrument through the display unit 7.

メインRAM14に記憶されたデータは、メインCPU
12の制御下で、デュアルポートRAM34a−nに移
され、その後、サブCPU22 a〜nのサブRAM2
4a−nに記憶される。
The data stored in the main RAM 14 is stored in the main CPU
12 to the dual port RAMs 34a-n, and then to the sub-RAMs 2 of the sub-CPUs 22a-n.
4a-n.

先ず、この調節計41においては、上述したように押出
機40の所望部位に対して、第3図中の点線で囲まれる
1個のサブ系統を例えば8チヤンネルとして担当させ、
各サブ系統を独立して動作させている。
First, in this controller 41, as described above, one sub-system surrounded by the dotted line in FIG. 3 is assigned to a desired part of the extruder 40 as, for example, 8 channels.
Each subsystem operates independently.

例えば、点線で囲まれる1個のサブ系統のうちサブCP
U22 aで制御するサブ入力ボート26a、〜7から
は、温度センサ42(1)〜、6.からのデ−タが入っ
ている。この測定値(pv)については、例えば200
msに1回1チヤンネル毎に取り込み、サブRAM24
aに格納させる。他のサブ系統も同様に動作する。
For example, in one subsystem surrounded by a dotted line, the subCP
Temperature sensors 42(1)-, 6. Contains data from. For this measured value (pv), for example, 200
Captures each channel once every ms, sub RAM 24
Store it in a. Other subsystems operate similarly.

メインRAM14内にも、温度に関するデータが存在す
る。例えば設定値(SV)、PID定数等は、メイン入
力ポート161〜7のキー設定により入力され、メイン
RAM14に記憶された後、メインCPU12の働きに
よりデュアルポートRAM34a〜nに書き込まれる。
Data related to temperature also exists in the main RAM 14. For example, setting values (SV), PID constants, etc. are input by key setting of main input ports 161 to 7, stored in main RAM 14, and then written to dual port RAMs 34a to 34n by the action of main CPU 12.

このデュアルボー1−RAM34a−nのデータは、サ
ブCPU22a−nによりサブRAM24a−nに取り
込まれる。
The data in the dual baud 1-RAM 34a-n is taken into the sub-RAM 24a-n by the sub-CPU 22a-n.

上記のようにして格納されている測定値(PV)および
設定値(3V)、PID定数等により、サブCPU22
a−nは、PID演算を行い、出力値を算出し、操作量
(MV)として、サブ出カポ−)27al〜7〜nt〜
7より出力し、夫々に対応する加熱ヒータ43 (1)
〜(1を加熱制御したり、あるいは測定値(PV)と設
定値(SV)と警報設定値との関係から警報出力を出力
したりする。
The sub CPU 22 uses the measured value (PV), set value (3V), PID constant, etc. stored as described above.
a-n performs PID calculation, calculates the output value, and uses the sub-output capo (MV) as the manipulated variable (MV) 27al~7~nt~
7 and corresponding heaters 43 (1)
~(1), or output an alarm output based on the relationship between the measured value (PV), set value (SV), and alarm set value.

そして、これらのデータも、サブRAM24 a〜nに
格納する。
These data are also stored in the sub-RAMs 24a to 24n.

次に、サブCPU22a−nは、上記デュアルポートR
AM34a=ixのデータの書き換え作業を行う、つま
り、入力したデータと、メインCPU12からのデータ
をもとに演算を行いサブRAM24a−wnに記憶する
。そして、そのデータを表示等で使用するためにデュア
ルボー)RAM34a−nに送る。これをメインCPU
12が取り込む。
Next, the sub CPUs 22a-n
The data of AM34a=ix is rewritten, that is, calculations are performed based on the input data and the data from the main CPU 12, and the results are stored in the sub RAM 24a-wn. The data is then sent to the dual-baud RAM 34a-n for use in display or the like. This is the main CPU
12 takes in.

そして、上記各作業において、原則的には、サブCPU
22a−nとメインCPU12は夫々独立している。従
って、表示やキー人力等により、メインCPU12の仕
事量が増えても、温度制御に関しては、サブCPU22
a−nにより余裕を持って行うことができる。制御点数
が増えれば、その分サブ系統を増設すればよいだけであ
る。
In each of the above operations, in principle, the sub-CPU
22a-n and the main CPU 12 are each independent. Therefore, even if the workload of the main CPU 12 increases due to display or key input, the sub CPU 22 will still be able to control the temperature.
This can be done with ample margin due to a-n. If the number of control points increases, it is only necessary to increase the number of subsystems accordingly.

メインCPU12での重要な仕事は、上記表示や設定の
処理、温度制御以外の制御動作であり、メイン入力ポー
ト16al〜、〜n、〜7から入力した押出機40のモ
ータ回転数や電流値等のアナログ入力や、モータ始動、
停止信号等のようなデジタル入力をキー操作やスイッチ
操作により設定した際、いろいろな画面に切り換えて表
示したり、これらの操作により決められた出力を出した
りもすることもできる。
The important work of the main CPU 12 is processing of the above-mentioned display and settings, control operations other than temperature control, and inputting the motor rotation speed and current value of the extruder 40 from the main input ports 16al~, ~n, ~7, etc. analog input, motor starting,
When a digital input such as a stop signal is set by key operation or switch operation, it is also possible to switch the display to various screens and output the output determined by these operations.

なお、上記実施例では、調節計の場合であったが、本発
明は、これに限定されず、同様の問題を有するその他の
機器にも応用することが可能である。
Note that although the above embodiment deals with a controller, the present invention is not limited thereto, and can be applied to other devices having similar problems.

〈発明の効果〉 以上の説明から明らかなように本発明に係るCPUII
I?1方式は、メインCPUと1または複数のサブCP
U間で共有するデュアルポートRAM中にデータチャン
ネル領域を設けると共に、前記メインCPUのメインR
AMおよびサブCPUのサブRAM中にも夫々データチ
ャンネル領域を設け、前記メインcpit+およびサブ
CPU間のデータの入出力を、前記各データチャンネル
領域のチャンネル数を判断して行う方式にあり、このデ
ータチャンネル領域のチャンネル数を媒介として、例え
ばデュアルボー)RAMに片方のCPU側からの完結さ
せたデータを記憶させ、このデータをもう片方のCPU
側で読み込むことにより、従来のような特別な処理(デ
ータチエツク)が不要となり、ハードウェアおよびソフ
トウェアの簡略化を図ることができる。
<Effects of the Invention> As is clear from the above description, the CPU II according to the present invention
I? One method is a main CPU and one or more sub CPUs.
A data channel area is provided in the dual port RAM shared between the main CPUs.
A data channel area is also provided in the sub RAM of the AM and sub CPU, respectively, and data input/output between the main cpit+ and the sub CPU is performed by determining the number of channels in each data channel area. Using the number of channels in the channel area as an intermediary, for example, the completed data from one CPU side is stored in a dual-baud RAM, and this data is transferred to the other CPU side.
By reading the data on the side, special processing (data check) as in the past becomes unnecessary, and hardware and software can be simplified.

また、同時に一方のCPUで他方のCPUの動作を監視
することが可能となるため、一方のCPUが故障した時
等に即座に調節針の出力を停止して、システムに被害を
及ぼすことのないようにする等の処理を行うことができ
る。
In addition, since it is possible for one CPU to monitor the operation of the other CPU at the same time, if one CPU malfunctions, the output of the adjustment needle will be immediately stopped and no damage will be caused to the system. You can perform processing such as

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

第1図は本発明に係るcPUIIJ111方式の一実施
例の概略を示した概略図、第2図は第1図のcPUI1
1御方式を実行方式ための流れを示したフローチャート
図、第3図は第1図のCPU1#I(It方式を適用し
た調節計の一例を示した概略図、第4図は上記調節計で
押出機を制御する場合を示した概略説明部、第5図は従
来のCPU制御方式の一例を示した概略図である。 図中、 1〜4・・・データチャンネル領域、 5I−1・・・・データ領域、 6、〜.・・・・データ領域、 11・・・メインデータバス、 12・・・メインCPU。 14・・・メインRAM。 16、〜.・・・メイン入力ボート、 IL−a  ・・・メイン出力ボート、21 axn・
・・サブデータバス、 22a 〜n・・−サブCPU。 24a〜n・−−サブRAM。 34a〜n・・・デュアルポートRAM。 40・・・押出機、 41・・・調節計、
FIG. 1 is a schematic diagram showing the outline of an embodiment of the cPUIIJ111 system according to the present invention, and FIG.
Fig. 3 is a schematic diagram showing an example of a controller to which the CPU1#I (It method in Fig. 1 is applied), Fig. 4 is a flowchart showing the flow for executing the CPU1#I (It method) in Fig. 5 is a schematic diagram showing an example of a conventional CPU control method. In the figure, 1 to 4...data channel area, 5I-1... ...Data area, 6,...Data area, 11...Main data bus, 12...Main CPU. 14...Main RAM. 16,...Main input port, IL -a...Main output boat, 21 axn・
. . . Sub data bus, 22a to n . . . -Sub CPU. 24a-n---Sub RAM. 34a-n...Dual port RAM. 40... Extruder, 41... Controller,

Claims (2)

【特許請求の範囲】[Claims] (1)メインCPUと1または複数のサブCPU間で共
有するデュアルポートRAM中にデータチャンネル領域
を設けると共に、前記メインCPUのメインRAMおよ
びサブCPUのサブRAM中にも夫々データチャンネル
領域を設け、前記メインCPUおよびサブCPU間のデ
ータの入出力を、前記各データチャンネル領域のチャン
ネル数を判断して、行うことを特徴とするCPU制御方
式。
(1) A data channel area is provided in a dual port RAM shared between the main CPU and one or more sub CPUs, and data channel areas are also provided in the main RAM of the main CPU and the sub RAM of the sub CPU, respectively; A CPU control system characterized in that data input/output between the main CPU and the sub CPU is performed by determining the number of channels in each data channel area.
(2)前記デュアルポートRAM中のデータチャンネル
領域を利用して、メインCPUおよびサブCPUが正常
に動作しているかを確認できることを特徴とするCPU
制御方式。
(2) A CPU characterized in that it is possible to check whether the main CPU and sub CPU are operating normally by using the data channel area in the dual port RAM.
control method.
JP1237965A 1989-09-13 1989-09-13 CPU control method Expired - Lifetime JPH061461B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1237965A JPH061461B2 (en) 1989-09-13 1989-09-13 CPU control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1237965A JPH061461B2 (en) 1989-09-13 1989-09-13 CPU control method

Publications (2)

Publication Number Publication Date
JPH03100754A true JPH03100754A (en) 1991-04-25
JPH061461B2 JPH061461B2 (en) 1994-01-05

Family

ID=17023092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1237965A Expired - Lifetime JPH061461B2 (en) 1989-09-13 1989-09-13 CPU control method

Country Status (1)

Country Link
JP (1) JPH061461B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011092755A1 (en) 2010-01-26 2011-08-04 Katano Akio Ion/ozone wind generation device and method
WO2014184984A1 (en) 2013-05-13 2014-11-20 株式会社 片野工業 Ion/ozone wind generation device and method
KR20170003574A (en) 2014-05-12 2017-01-09 가타노 고교 가부시키가이샤 Ion/ozone wind generation device and method
KR20210123871A (en) 2020-04-06 2021-10-14 김철 Ionic wind type air cleaner for room

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57164345A (en) * 1981-04-01 1982-10-08 Nec Corp Failure detecting system for composite microcomputer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57164345A (en) * 1981-04-01 1982-10-08 Nec Corp Failure detecting system for composite microcomputer

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011092755A1 (en) 2010-01-26 2011-08-04 Katano Akio Ion/ozone wind generation device and method
US8373963B2 (en) 2010-01-26 2013-02-12 Akio Katano Ion/ozone wind generation device and method
WO2014184984A1 (en) 2013-05-13 2014-11-20 株式会社 片野工業 Ion/ozone wind generation device and method
KR20160025506A (en) 2013-05-13 2016-03-08 가타노 고교 가부시키가이샤 Ion/ozone wind generation device and method
KR20170003574A (en) 2014-05-12 2017-01-09 가타노 고교 가부시키가이샤 Ion/ozone wind generation device and method
KR20210123871A (en) 2020-04-06 2021-10-14 김철 Ionic wind type air cleaner for room

Also Published As

Publication number Publication date
JPH061461B2 (en) 1994-01-05

Similar Documents

Publication Publication Date Title
JPH03100754A (en) Cpu control system
JPH02189663A (en) Input/output data transfer system
US5615104A (en) Monitoring method and apparatus using a programmable logic controller
JPS6159558A (en) Dma diagnosis system
JPS62221043A (en) Monitor circuit for logical unit
JP2001034330A (en) Control information display input device and its controlling method
JP2973742B2 (en) I / O interface device
JP3068881B2 (en) Process control equipment
JPS60211507A (en) Communication system in numerical controller
JPS5822469A (en) Central monitoring controller
JPH04333963A (en) Fault processing system
JP3208143B2 (en) Input / output controller of power controller
JPS60171557A (en) High-speed multiplex transmission system
JPS60147854A (en) Peripheral control device
JPH01149117A (en) Console command input control system
JPH04151701A (en) Process input and output controlling system
JPH02220598A (en) Data collection system
JPH02299004A (en) Monitor system for programmable controller
JPH05108588A (en) Multiprocessor system
JPH0450616B2 (en)
JPH05233526A (en) Dma control system
JPS62128347A (en) Initial diagnostic system for in-channel dma
JPH05298199A (en) Input/output control device
JPS5858630A (en) Dma function diagnosing method of centralized control system
JPH04184501A (en) Process data processing system