JP3833897B2 - Control device - Google Patents

Control device Download PDF

Info

Publication number
JP3833897B2
JP3833897B2 JP2001038125A JP2001038125A JP3833897B2 JP 3833897 B2 JP3833897 B2 JP 3833897B2 JP 2001038125 A JP2001038125 A JP 2001038125A JP 2001038125 A JP2001038125 A JP 2001038125A JP 3833897 B2 JP3833897 B2 JP 3833897B2
Authority
JP
Japan
Prior art keywords
cpu
unit
rom
program
ram
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001038125A
Other languages
Japanese (ja)
Other versions
JP2002244857A (en
Inventor
幸浩 吉田
敏雄 青能
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JTEKT Corp
Original Assignee
JTEKT 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 JTEKT Corp filed Critical JTEKT Corp
Priority to JP2001038125A priority Critical patent/JP3833897B2/en
Publication of JP2002244857A publication Critical patent/JP2002244857A/en
Application granted granted Critical
Publication of JP3833897B2 publication Critical patent/JP3833897B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、工作機械等の種々の機器に利用できる、コスト低減や小型化等に有効な制御装置に関するものである。
【0002】
【従来の技術】
マイクロコンピュータを用いた一般的な制御装置は、CPUと、そのCPUで実行するためのプログラムを格納する記憶デバイスであるROMと、プログラムの実行上必要となる変数等を格納する記憶デバイスであるRAMと、その他、必要な回路等で構成され、その機能を実現している。
制御内容が単純な場合であれば、CPU、ROM、RAM等がそれぞれ1づつ存在すれば十分であるが、制御内容が複雑化したり、処理速度の高速化が要求される場合、複数のユニットに分散させてプログラムを処理させたり、機能ごとに専用の処理ユニットを設けることが行われている。
例えば、プログラムを複数のCPUで分散して実行する場合、基本的には各ユニットごとに単独して単一動作を行わせ、各ユニット間で必要となるデータの伝達等は共有RAM等からなるインタフェースを介在させて行い、制御装置全体としての高速化、高機能化を図っている。
【0003】
ところで、従来の制御装置では、図4に示すように、各ユニットのCPUごとにROMやRAMが設けられ、電源を投入すると、各ユニットのCPUが、各CPUごとに設けられたROMから専用のプログラムを読込んで実行し、動作を行なうようになっていた。このため、従来の制御装置では、少なくともCPUの個数と同数のROMが必要とされていた。
【0004】
【発明が解決しようとする課題】
しかし、制御装置の高性能化が進み、ユニット数が増えると、実装チップ数が増加し、より大きな実装面積が必要となり、制御装置の小型化を図ることが難しくなってきた。また、ROMの場合、各ROMごとの書込み作業が必要となるため、ROM数が増えると、その工数も増大することになる。
また、通常、ROMは書込むプログラム容量よりも大きな容量のものを選定して使用するため、従来のように各CPUごとにROMを設ける場合、未使用領域を残しつつ多数のROMが存在して、非効率でもあった。
さらに、全く同じプログラムを複数のCPUで動作させる場合にも、同じプログラムを書き込んだROMをCPUごとに実装しなければならなかった。特に、プログラムが複数の動作をもつ大きなものである場合、各ROMに同じプログラムを書込んで、それぞれのROMを実装することは非常に非効率である。
また、制御装置は、その機種ごとにROMに書込むプログラムが異なるため、ROMの種類が多くなると、その管理工数も大きくなる。
本発明は、このような事情に鑑みて為されたものである。つまり、ROMへのプログラムの書込み工数や書込み時間、デバイスコスト、チップの実装工数や実装面積等の低減、制御装置の小型化、各機種ごとに必要となる機種ROMの管理工数低減等の少なくともいずれかを図ることができる制御装置を提供することを目的とする。
【0005】
【課題を解決するための手段】
そこで、本発明者はこの課題を解決すべく鋭意研究し、試行錯誤を重ねた結果、複数のユニットからなる制御装置において下位側のROMを削除することを思い付き、本発明の制御装置を開発するに至ったものである。
すなわち、本発明の制御装置は、上位CPUと該上位CPUによるデータの読み書き可能な上位RAMと該上位CPUによるデータの読込み可能な上位ROMとからなる上位ユニットと、下位CPUと該下位CPUによるデータの読み書き可能な下位RAMとからなり該下位CPU専用のROMが設けられていない複数の下位ユニットと、該上位ユニットと該下位ユニットとの間に設けられ該上位CPUと該下位CPUとによるデータの読み書き可能な共有RAMと、該共有RAMに格納されているプログラムを該下位RAMに転送する下位ユニット用転送プログラムと該上位ユニットの動作モードに応じて選択される複数の下位ユニット用システムプログラムとを少なくとも含む該下位CPUが実行可能な下位ユニット用プログラムを該上位ROMから該共有RAMに転送する転送手段と、該転送手段が該下位ユニット用転送プログラムを該上位ROMから該共有RAMに転送し終えた後に該下位CPUを起動させる起動制御手段と、を備えることを特徴とする。
【0006】
本発明の制御装置は、従来、CPUごとにROMが必要と考えられていた概念を覆し、下位ユニット側のROMを削除したものである。そして、そのROMを削除するに際し、従来ならそのROMに格納されていた下位ユニット用プログラムを、本発明では上位ROMにまとめて格納しておき、上位ユニットと下位ユニットとの間に必要となる共有RAMを有効利用して、転送手段により、その下位ユニット用プログラムを上位ROMからその共有RAMへ転送し、その下位ユニット用プログラムを下位CPUが実行できるようにしたものである。
但し、下位CPUが下位ユニット用プログラムを実行するには、先ず、その実行するプログラムが少なくとも共有RAMに転送されていることが前提となるため、下位CPUの起動タイミングを制御することが必要となる。そこで、この起動制御を行うのが起動制御手段である。
前記転送手段は、例えば、前記上位CPUにより実行される上位転送プログラムである。
【0007】
そして、前記上位ROMに複数の下位ユニット用システムプログラムが格納されており、その上位転送プログラムに、上位ユニットの動作モードに応じて選択される該下位ユニット用システムプログラムを転送するプログラムが含まれている。
上位ユニットの動作モードに応じて、必要となる下位ユニットの動作モードも決まるため、その下位ユニットの動作に必要な下位ユニット用システムプログラムのみを転送することができると、転送時間の短縮、共有RAMや下位RAMの有効利用または容量の節減が可能となる。
【0008】
また、前記起動制御手段は、例えば、前記上位CPUが前記下位CPUに出力するリセット解除信号である。
下位CPUの起動は、下位ユニットの動作に必要な下位ユニット用プログラムが、上位ROMから共有RAMへ転送された後になされ、その転送を実行している上位CPUがリセット解除信号を出力するため、誤動作や異常信号の出力を防止できる。
【0009】
ところで、下位ユニット用プログラムが、下位ユニット用転送プログラムを少なくとも含むのは次の理由による。
転送される下位ユニット用プログラム全体が小容量のものであれば、下位CPUが共有RAMへ転送されたプログラムを共有RAMから直接読込んで実行することも可能である。しかし、下位ユニット用プログラムの容量が大きかったり、複数の機能をもつプログラムから構成されている場合、状況に応じて必要なプログラム(例えば、下位ユニット用システムプログラム)を下位RAMに転送した後、下位CPUがその下位RAMにあるプログラムを読込んで実行する方が処理速度等の観点から好ましい。この場合、共有RAMから下位RAMへデータを転送する下位ユニット用転送プログラムが必要となり、下位CPUは、上位ROMから共有RAMへ転送されてきた下位ユニット用転送プログラムを、先行して実行する。つまり、このとき、下位CPUは、起動と同時に、下位ユニット用転送プログラムが格納されている共有RAMの所定番地から、その下位ユニット用転送プログラム(データ)を読み始めることになる。
【0010】
なお、上述の「上位」、「下位」は便宜上の称呼であり、制御装置全体としての機能上の上位や下位を示すものではない。また、言うまでもないが、CPUは中央処理装置であり、一般的に使用されている種々のCPUが含まれ、キャッシュを伴うものでも良い。RAMは、通常、一時記憶可能な揮発性メモリであり、DRAMやSRAMがある。また、共有RAMは、デュアルポート(2ポート)RAM等からなり、両ポートから読み書き可能で、両ユニット間でデータのやりとりができるものである。ROMは、不揮発性メモリであり、マスクROMやPROM(EPROM、EEPROM、フラッシュメモリ等)等からなる。
【0011】
【発明の実施の形態】
次に、実施形態を挙げ、本発明の制御装置をより具体的に説明する。
先ず、本発明の概念を図1および図2を用いて詳しく説明する。図1は、制御装置(例えば、工作機械のNC装置)の制御基板上に配設される回路構成の内、本発明に係る要部を模式的に示したものである。図1では、理解を容易にするために、上位ユニットと下位ユニットとの2ユニットしか示していないが、下位ユニットが複数あっても、上位ユニットと下位ユニットとの組合わせが複数あっても、基本的には同様である。
【0012】
図1に示す上位ユニット10も下位ユニット20も、共に外部機器15、25にインターフェース(I/F)14、24を介して接続されており、外部機器15、25に信号やデータを出力して外部機器の制御を行ったり、外部機器15、25から信号やデータを受取ったりできるようになっている。
そして、上位ユニット10と下位ユニット20との間には、両者のインターフェースとなる共有RAM(2ポートRAM)30が設けられている。この共有RAM30をバッファとすることにより、上位ユニット10と下位ユニット20との間でデータや信号の送受信やプログラムの転送が可能となる。
【0013】
ところで、本発明に係る制御装置を示した図1と、従来の制御装置を示した図4とを比較すると明かなように、本発明に係る制御装置では、下位ユニット20側のROMが省略されている。
この図1に示す制御装置の動作について、図2を参照しつつ説明する。図2は、上位ユニット10側に設けたフラッシュメモリからなるROM(上位ROM)13に格納されているプログラムを階層的に模式化して示したものである。
【0014】
▲1▼上位CPU11は、電源監視回路(図略)からの出力信号によりリセット解除されると、起動するように回路が構成されている。そして、上位CPU11が起動すると、ROM13から上位ユニット用プログラムを読み込んで実行を開始する。また、上位CPU11は、必要に応じて、RAM12にアクセスして、プログラムやデータを一時的に記憶させる。
【0015】
▲2▼次に、上位CPU11は、前述の上位ユニット用プログラムに含まれていた転送プログラム(上位転送プログラム)を実行し(転送手段)、下位ユニット用プログラムの一種である下位ユニット用転送プログラムをROM12から共有RAM30に転送する。
【0016】
▲3▼次に、上位CPU11は、その転送完了信号を受けて、下位CPU21にリセット解除信号を出力する(起動制御手段)。
【0017】
▲4▼下位CPU21は、このリセット解除信号を受けて起動し、共有RAM30に既に転送されている下位ユニット用転送プログラムを読込んで実行を開始する。なお、下位CPU21は起動時に共有RAM30の所定番地からデータを読込むように回路が構成されている。
こうして、下位CPU21は、ROM13から共有RAM30に転送されてきたプログラムを下位ユニット20側のRAM22に転送させることができる。
【0018】
▲5▼次に、上位CPU11は、前述の上位転送プログラムを再度実行させ、ROM13の下位ユニット用転送プログラムの下層に格納されている下位ユニットシステムプログラム▲1▼を共有RAM30に転送する。
但し、上位ユニット10の動作モードによっては、下位ユニット用システムプログラム▲2▼を共有RAM30に転送しても良い。さらに、下位ユニット用システムプログラム▲1▼の転送途中であっても、下位ユニット用システムプログラム▲2▼の転送に切替えても良い。
【0019】
▲6▼上位CPU11から共有RAM30へのプログラムの転送処理完了を待って、またはその転送処理と並行して、下位CPU21は、共有RAM30に転送されてきた下位ユニット用システムプログラム▲1▼を順次、RAM22へ転送し始める。
【0020】
▲7▼そして、RAM22への転送が終了すると、下位CPU21は、RAM22から転送された下位ユニット用システムプログラムを読込んで実行し、下位ユニット20の機能を発揮する。
このようにして、本発明の制御装置は、下位ユニット側のROMを削減しながらも、上位ユニット側のROMや共有RAMを有効活用し、従来の制御装置と何ら機能的に劣ることなく、コスト削減や基板の実装面積の減少または制御装置の小型化を図ることに成功した。
【0021】
なお、上述の説明では、下位ユニット用システムプログラムのRAM22への転送終了後に下位CPU21がそのプログラムを実行する場合を想定して説明したが、その転送途中や、実行途中に、上位CPUが別の下位ユニット用システムプログラムを転送し直して、下位CPUの動作を変更することも可能である。
また、下位ユニットが複数あり、各下位CPUが同じプログラムで動作する場合は、プログラム共用化して(つまり、上位ROMに格納するプログラムを一つに集約して)、同じプログラムを上位ROMから各下位RAMや各共有RAMに転送するようにしても良い。
【0022】
次に、本発明の実施形態である工作機械のNC装置100を図3に示す。なお、図3では、本発明に係わる制御基板の要部を中心に示した。
このNC装置100は、図1に示した制御装置と同様に、上位CPU111、(上位)RAM112およびフラッシュメモリからなる上位ROM113で上位ユニットが構成される。上位ROM113に格納されているプログラムの内容等は、図2に示したものと基本的に同様である。
【0023】
また、上位CPU111は、インターフェース(I/F)114を介して、コネクタ115に接続された外部機器と通信可能であると共に、コネクタ165に接続されたPLC(プログラマブルロジックコントローラ)を制御するPLC制御部160とも入出力可能である。
一方、下位ユニットとして、サーボ制御部を例示した。このサーボ制御部は、第1サーボを制御する第1サーボアンプ部(第1下位ユニット)と第2サーボを制御する第2サーボアンプ部(第2下位ユニット)とからなる。
【0024】
第1サーボアンプ部は、下位CPU121と、第1サーボ用インターフェース(I/F)124と、RAM122とで構成され、コネクタ125を介して第1サーボに接続される。そして、上位ユニットとの間には共有RAM130が設けられている。
【0025】
第2サーボアンプ部は、下位CPU141と、第2サーボ用インターフェース(I/F)144とで構成され、コネクタ145を介して第2サーボに接続される。そして、上位ユニットとの間には共有RAM150が設けられている。
従って、このNC装置100では、上位ユニット一つに対して下位ユニットが二つある場合に相当する。そして、上位ROM113には、上位ユニット用プログラムと共に、第1サーボアンプ部と第2サーボアンプ部との機能実現に必要なそれぞれの下位ユニット用システムプログラムと、その下位ユニット用転送プログラムとが格納されている。
【0026】
ところで、図3に示したNC装置100の場合、第1サーボアンプ部にはRAM122を設けたのに対して、第2サーボアンプ部には専用の下位RAMを設けずに、共有RAM150を兼用させることとした。従って、本発明でいう「下位RAM」は、「共有RAM」に含めて考えることもできるものである。つまり、本発明でいう下位RAMは必ずしも独立した存在である必要はない。
【0027】
また、図3に示した波線矢印は、プログラム転送の流れを示したものである。つまり、上位ROM113には、基板への実装前または実装後に、ROMライターにより必要なデータ(プログラム)が書込まれる。そして、その書込まれたプログラムの内で、下位CPU121または下位CPU141で実行されるプログラムは、それぞれ共有RAM130または共有RAM150に転送される。
【0028】
図3では、本発明に係る要部のみを示したが、実際のNC装置を構成する制御基板には多数のチップやユニットが集積して組込まれている。そのため、従来の制御基板では、高機能化に伴ってさらにチップ等を増加させることは困難であったが、本発明によれば、ROMを削減できる分、他のチップやユニットの搭載が可能となり、制御装置の大型化を回避しつつ、制御装置のさらなる高機能化を達成し得る。
【0029】
【発明の効果】
本発明の制御装置によれば、ユニット数が増加しても下位ユニットのROMを削減できるため、ROMへのプログラムの書込み工数の低減、書込み時間の削減、デバイスコストの低減、チップの実装工数の低減または機種ROMの管理工数の低減等に伴うコストダウンや、実装面積の低減等に伴う制御装置の小型化等を図れる。
【図面の簡単な説明】
【図1】本発明に係る制御装置を概念的に示した模式図である。
【図2】本発明に係る制御装置に用いられた上位ROMに格納されたプログラムを階層的に示した説明図である。
【図3】本発明の実施形態に係るNC装置の制御基板の要部を示した図である。
【図4】従来の制御装置を概念的に示した模式図である。
【符号の説明】
11、111 上位CPU
13、113 (上位)ROM
12、112 (上位)RAM
21、121、141 下位CPU
22、122 (下位)RAM
30、130、150 共有RAM
100 NC装置(制御装置)
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a control device that can be used for various devices such as machine tools and is effective for cost reduction and downsizing.
[0002]
[Prior art]
A general control device using a microcomputer includes a CPU, a ROM that is a storage device that stores a program to be executed by the CPU, and a RAM that is a storage device that stores variables necessary for the execution of the program. In addition, it is composed of necessary circuits and the like and realizes its function.
If the control contents are simple, it is sufficient to have one CPU, one ROM, one RAM, etc., but if the control contents are complicated or the processing speed is required to be increased, a plurality of units are provided. A program is distributed and processed, or a dedicated processing unit is provided for each function.
For example, when a program is distributed and executed by a plurality of CPUs, each unit basically performs a single operation independently, and transmission of data necessary between the units is made up of a shared RAM or the like. The interface is used to increase the speed and functionality of the entire control device.
[0003]
By the way, in the conventional control device, as shown in FIG. 4, ROM and RAM are provided for each CPU of each unit, and when the power is turned on, the CPU of each unit is dedicated from the ROM provided for each CPU. It was supposed to read and execute the program and perform the operation. For this reason, the conventional control device requires at least as many ROMs as the number of CPUs.
[0004]
[Problems to be solved by the invention]
However, as the performance of the control device increases and the number of units increases, the number of mounted chips increases and a larger mounting area is required, making it difficult to reduce the size of the control device. In the case of ROM, since writing work for each ROM is required, the number of man-hours increases as the number of ROMs increases.
In general, since a ROM having a larger capacity than the program capacity to be written is selected and used, when a ROM is provided for each CPU as in the prior art, there are many ROMs while leaving an unused area. It was also inefficient.
Further, even when the same program is operated by a plurality of CPUs, a ROM in which the same program is written has to be mounted for each CPU. In particular, when the program is a large program having a plurality of operations, it is very inefficient to write the same program in each ROM and mount each ROM.
In addition, since the control device has a different program to be written in the ROM for each model, the management man-hour increases as the number of ROM types increases.
The present invention has been made in view of such circumstances. In other words, at least one of the following: writing man-hours and time for writing programs to the ROM, reducing device costs, chip mounting man-hours and mounting area, downsizing the control device, and reducing model ROM management man-hours required for each model It is an object of the present invention to provide a control device that can achieve this.
[0005]
[Means for Solving the Problems]
Therefore, the present inventor has eagerly studied to solve this problem, and as a result of repeated trial and error, has come up with the idea of deleting the lower ROM in the control device composed of a plurality of units, and develops the control device of the present invention. Has been reached.
That is, the control device according to the present invention includes an upper unit composed of an upper CPU, an upper RAM capable of reading and writing data by the upper CPU, and an upper ROM from which data can be read by the upper CPU, and data by the lower CPU and the lower CPU. A plurality of lower units that are not provided with a ROM dedicated to the lower CPU, and are provided between the upper unit and the lower unit. A readable / writable shared RAM, a lower unit transfer program for transferring a program stored in the shared RAM to the lower RAM, and a plurality of lower unit system programs selected according to the operation mode of the upper unit A program for a lower unit executable by at least the lower CPU including the upper CPU Further comprising a transfer means for transferring from the ROM to the shared RAM, and activation control means for causing starting the lower position CPU after said transfer means has finished transferring the transfer program for lower level units from said upper ROM to the shared RAM, and It is characterized by.
[0006]
The control device according to the present invention is such that the conventional concept that a ROM is required for each CPU is reversed, and the ROM on the lower unit side is deleted. Then, when deleting the ROM, the lower unit programs conventionally stored in the ROM are collectively stored in the upper ROM in the present invention, and are shared between the upper unit and the lower unit. The RAM is used effectively, and the lower unit program is transferred from the upper ROM to the shared RAM by the transfer means so that the lower CPU can execute the lower unit program.
However, in order for the lower CPU to execute the lower unit program, first, it is assumed that the program to be executed is transferred to at least the shared RAM. Therefore, it is necessary to control the start timing of the lower CPU. . Therefore, the start control means performs this start control.
The transfer means is, for example, an upper transfer program executed by the upper CPU.
[0007]
A plurality of lower unit system programs are stored in the upper ROM, and the upper transfer program includes a program for transferring the lower unit system program selected according to the operation mode of the upper unit. Yes.
Since the necessary operation mode of the lower unit is determined according to the operation mode of the upper unit, if only the lower unit system program necessary for the operation of the lower unit can be transferred, the transfer time can be shortened and the shared RAM can be transferred. In addition, it is possible to effectively use the lower RAM or reduce the capacity.
[0008]
Further, the activation control means is, for example, a reset release signal output from the upper CPU to the lower CPU.
The lower CPU is started after the lower unit program necessary for the operation of the lower unit is transferred from the upper ROM to the shared RAM, and the upper CPU executing the transfer outputs a reset release signal. And output of abnormal signals can be prevented.
[0009]
Incidentally, the reason why the lower unit program includes at least the lower unit transfer program is as follows.
If the entire lower unit program to be transferred has a small capacity, the lower CPU can directly read and execute the program transferred to the shared RAM from the shared RAM. However, if the capacity of the lower unit program is large or consists of programs having multiple functions, the necessary program (for example, the lower unit system program) is transferred to the lower RAM according to the situation, and then the lower unit It is preferable from the viewpoint of processing speed or the like that the CPU reads and executes the program in its lower RAM. In this case, a lower unit transfer program for transferring data from the shared RAM to the lower RAM is required, and the lower CPU executes the lower unit transfer program transferred from the upper ROM to the shared RAM in advance. That is, at this time, the lower CPU starts reading the lower unit transfer program (data) from a predetermined address of the shared RAM in which the lower unit transfer program is stored at the same time of activation.
[0010]
Note that the above-mentioned “upper” and “lower” are names for convenience, and do not indicate upper or lower of the function of the entire control apparatus. Needless to say, the CPU is a central processing unit, which includes various commonly used CPUs, and may include a cache. The RAM is usually a volatile memory that can be temporarily stored, and includes a DRAM and an SRAM. The shared RAM is composed of a dual port (2-port) RAM, etc., which can be read and written from both ports, and can exchange data between both units. The ROM is a non-volatile memory and includes a mask ROM, a PROM (EPROM, EEPROM, flash memory, etc.), and the like.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
Next, the control device of the present invention will be described more specifically with reference to an embodiment.
First, the concept of the present invention will be described in detail with reference to FIGS. FIG. 1 schematically shows a main part according to the present invention in a circuit configuration arranged on a control board of a control device (for example, an NC device of a machine tool). In FIG. 1, only two units, the upper unit and the lower unit, are shown for ease of understanding. However, even if there are a plurality of lower units or a combination of the upper unit and the lower unit, Basically the same.
[0012]
Both the upper unit 10 and the lower unit 20 shown in FIG. 1 are connected to the external devices 15 and 25 via the interfaces (I / F) 14 and 24, and output signals and data to the external devices 15 and 25. The external device can be controlled, and signals and data can be received from the external devices 15 and 25.
A shared RAM (2-port RAM) 30 serving as an interface between the upper unit 10 and the lower unit 20 is provided. By using this shared RAM 30 as a buffer, data and signals can be transmitted and received and programs can be transferred between the upper unit 10 and the lower unit 20.
[0013]
By the way, as apparent from comparison between FIG. 1 showing the control device according to the present invention and FIG. 4 showing the conventional control device, the ROM on the lower unit 20 side is omitted in the control device according to the present invention. ing.
The operation of the control device shown in FIG. 1 will be described with reference to FIG. FIG. 2 schematically shows a program hierarchically stored in a ROM (upper ROM) 13 composed of a flash memory provided on the upper unit 10 side.
[0014]
(1) The upper CPU 11 is configured to start when reset is released by an output signal from a power supply monitoring circuit (not shown). When the upper CPU 11 is activated, the upper unit program is read from the ROM 13 and starts executing. Further, the host CPU 11 accesses the RAM 12 as necessary to temporarily store programs and data.
[0015]
(2) Next, the upper CPU 11 executes the transfer program (upper transfer program) included in the above-mentioned upper unit program (transfer means), and executes a lower unit transfer program which is a kind of lower unit program. Transfer from the ROM 12 to the shared RAM 30.
[0016]
(3) Next, the upper CPU 11 receives the transfer completion signal and outputs a reset release signal to the lower CPU 21 (startup control means).
[0017]
(4) The lower CPU 21 is activated in response to the reset release signal, reads the lower unit transfer program already transferred to the shared RAM 30, and starts executing it. The lower CPU 21 is configured to read data from a predetermined address in the shared RAM 30 at the time of activation.
Thus, the lower CPU 21 can transfer the program transferred from the ROM 13 to the shared RAM 30 to the RAM 22 on the lower unit 20 side.
[0018]
(5) Next, the upper CPU 11 executes the above-described upper transfer program again, and transfers the lower unit system program (1) stored in the lower layer of the lower unit transfer program in the ROM 13 to the shared RAM 30.
However, depending on the operation mode of the upper unit 10, the lower unit system program (2) may be transferred to the shared RAM 30. Further, even during the transfer of the lower unit system program {circle around (1)}, it may be switched to the lower unit system program {circle around (2)}.
[0019]
(6) Waiting for the completion of the transfer process of the program from the upper CPU 11 to the shared RAM 30, or in parallel with the transfer process, the lower CPU 21 sequentially loads the lower unit system program (1) transferred to the shared RAM 30. Transfer to the RAM 22 is started.
[0020]
(7) When the transfer to the RAM 22 is completed, the lower CPU 21 reads and executes the lower unit system program transferred from the RAM 22 and exhibits the functions of the lower unit 20.
In this way, the control device of the present invention effectively uses the ROM and shared RAM on the upper unit side while reducing the ROM on the lower unit side, and is cost-effective without any functional inferiority to the conventional control device. We have succeeded in reducing the mounting area of the board or downsizing the control device.
[0021]
In the above description, the case where the lower CPU 21 executes the program after the transfer of the lower unit system program to the RAM 22 has been described. However, the upper CPU may change during transfer or execution. It is also possible to change the operation of the lower CPU by transferring the lower unit system program again.
Also, if there are multiple lower units and each lower CPU operates with the same program, program sharing (that is, consolidate the programs stored in the upper ROM into one) and the same program from the upper ROM to each lower You may make it transfer to RAM and each shared RAM.
[0022]
Next, an NC apparatus 100 for a machine tool according to an embodiment of the present invention is shown in FIG. In FIG. 3, the main part of the control board according to the present invention is mainly shown.
As in the control device shown in FIG. 1, the NC device 100 includes a host CPU 111, a host RAM 112, and a host ROM 113 including a flash memory. The contents of the program stored in the upper ROM 113 are basically the same as those shown in FIG.
[0023]
The host CPU 111 can communicate with an external device connected to the connector 115 via the interface (I / F) 114 and also controls a PLC (programmable logic controller) connected to the connector 165. 160 can also be input / output.
On the other hand, the servo control unit is exemplified as the lower unit. The servo control unit includes a first servo amplifier unit (first lower unit) that controls the first servo and a second servo amplifier unit (second lower unit) that controls the second servo.
[0024]
The first servo amplifier section includes a lower CPU 121, a first servo interface (I / F) 124, and a RAM 122, and is connected to the first servo via a connector 125. A shared RAM 130 is provided between the upper units.
[0025]
The second servo amplifier section includes a lower CPU 141 and a second servo interface (I / F) 144 and is connected to the second servo via the connector 145. A shared RAM 150 is provided between the upper units.
Therefore, this NC apparatus 100 corresponds to the case where there are two lower units for one upper unit. The upper ROM 113 stores the lower unit system program and the lower unit transfer program necessary for realizing the functions of the first servo amplifier unit and the second servo amplifier unit together with the upper unit program. ing.
[0026]
By the way, in the case of the NC apparatus 100 shown in FIG. 3, the RAM 122 is provided in the first servo amplifier unit, whereas the dedicated servo RAM is not provided in the second servo amplifier unit, and the shared RAM 150 is also used. It was decided. Therefore, the “lower RAM” in the present invention can be considered to be included in the “shared RAM”. In other words, the lower-level RAM referred to in the present invention does not necessarily have to exist independently.
[0027]
Also, the wavy arrow shown in FIG. 3 shows the flow of program transfer. That is, necessary data (program) is written in the upper ROM 113 by the ROM writer before or after mounting on the board. Of the written programs, the programs executed by the lower CPU 121 or the lower CPU 141 are transferred to the shared RAM 130 or the shared RAM 150, respectively.
[0028]
In FIG. 3, only the main part according to the present invention is shown, but a large number of chips and units are integrated and incorporated in a control board constituting an actual NC apparatus. For this reason, it has been difficult to increase the number of chips and the like in the conventional control board as the functions increase, but according to the present invention, it is possible to mount other chips and units as much as the ROM can be reduced. Further, it is possible to achieve further enhancement of the function of the control device while avoiding an increase in the size of the control device.
[0029]
【The invention's effect】
According to the control device of the present invention, even if the number of units increases, the ROM of the lower unit can be reduced. Therefore, the number of steps for writing programs to the ROM, the writing time, the device cost, the chip mounting man-hours can be reduced. Cost reduction associated with reduction or reduction in the number of man-hours for managing the model ROM, and downsizing of the control device associated with reduction in mounting area, etc. can be achieved.
[Brief description of the drawings]
FIG. 1 is a schematic diagram conceptually showing a control device according to the present invention.
FIG. 2 is an explanatory diagram hierarchically showing programs stored in a host ROM used in the control device according to the present invention.
FIG. 3 is a diagram showing a main part of a control board of the NC apparatus according to the embodiment of the present invention.
FIG. 4 is a schematic diagram conceptually showing a conventional control device.
[Explanation of symbols]
11, 111 Host CPU
13, 113 (Upper) ROM
12, 112 (upper) RAM
21, 121, 141 Lower CPU
22, 122 (lower) RAM
30, 130, 150 Shared RAM
100 NC unit (control unit)

Claims (3)

上位CPUと該上位CPUによるデータの読み書き可能な上位RAMと該上位CPUによるデータの読込み可能な上位ROMとからなる上位ユニットと、
下位CPUと該下位CPUによるデータの読み書き可能な下位RAMとからなり該下位CPU専用のROMが設けられていない複数の下位ユニットと、
該上位ユニットと該下位ユニットとの間に設けられ該上位CPUと該下位CPUとによるデータの読み書き可能な共有RAMと、
該共有RAMに格納されているプログラムを該下位RAMに転送する下位ユニット用転送プログラムと該上位ユニットの動作モードに応じて選択される複数の下位ユニット用システムプログラムとを少なくとも含む該下位CPUが実行可能な下位ユニット用プログラムを該上位ROMから該共有RAMに転送する転送手段と、
該転送手段が該下位ユニット用転送プログラムを該上位ROMから該共有RAMに転送し終えた後に該下位CPUを起動させる起動制御手段と、
を備えることを特徴とする制御装置。
A host unit comprising a host CPU, a host RAM capable of reading and writing data by the host CPU, and a host ROM capable of reading data by the host CPU;
A plurality of subordinate units, each comprising a subordinate CPU and a subordinate RAM capable of reading and writing data by the subordinate CPU, and not provided with a ROM dedicated to the subordinate CPU;
A shared RAM provided between the upper unit and the lower unit and capable of reading and writing data by the upper CPU and the lower CPU;
Executed by the lower CPU including at least a lower unit transfer program for transferring a program stored in the shared RAM to the lower RAM and a plurality of lower unit system programs selected according to the operation mode of the upper unit Transfer means for transferring possible lower unit programs from the upper ROM to the shared RAM;
And activation control means for causing starting the lower position CPU after said transfer means has finished transferred to the shared RAM transfer program 1026 the subordinate unit from said upper ROM,
A control device comprising:
前記転送手段は、前記上位CPUにより実行される上位転送プログラムである請求項1記載の制御装置。The control device according to claim 1, wherein the transfer unit is a higher-level transfer program executed by the higher-level CPU. 前記起動制御手段は、前記上位CPUが前記下位CPUに出力するリセット解除信号である請求項1記載の制御装置。The control device according to claim 1, wherein the activation control means is a reset release signal output from the upper CPU to the lower CPU.
JP2001038125A 2001-02-15 2001-02-15 Control device Expired - Fee Related JP3833897B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001038125A JP3833897B2 (en) 2001-02-15 2001-02-15 Control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001038125A JP3833897B2 (en) 2001-02-15 2001-02-15 Control device

Publications (2)

Publication Number Publication Date
JP2002244857A JP2002244857A (en) 2002-08-30
JP3833897B2 true JP3833897B2 (en) 2006-10-18

Family

ID=18901162

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001038125A Expired - Fee Related JP3833897B2 (en) 2001-02-15 2001-02-15 Control device

Country Status (1)

Country Link
JP (1) JP3833897B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4876459B2 (en) * 2005-07-05 2012-02-15 日本電気株式会社 Multiprocessor system, multiprocessor system activation method, and portable terminal
JP2007026318A (en) * 2005-07-20 2007-02-01 Nec Corp Mobile phone, system and method for generating program, and system and method for updating program

Also Published As

Publication number Publication date
JP2002244857A (en) 2002-08-30

Similar Documents

Publication Publication Date Title
JP5588536B2 (en) Memory device, system having memory device, and method of operating embedded device
US5271453A (en) System and method for controlling air conditioner
WO1998008306A1 (en) Reconfigurable computing system
JPH06187283A (en) Card
US6629165B1 (en) Programmable controller including intelligent module
JPH0521251B2 (en)
US7447853B2 (en) Data copy device
US20090307454A1 (en) Method and device for switching over in a memory for a control device
JP3833897B2 (en) Control device
JP2003140963A (en) Semiconductor storage system
JP2000020492A (en) Method for downloading program to sub cpu and nc device therefor
JPS6319058A (en) Memory device
JP3827068B2 (en) controller
EA039007B1 (en) Device for direct mapping of data addresses located in the external serial rom into the address space of microprocessor core, computer system, and data transmission method
JP3092116B2 (en) Program change method
JPS592058B2 (en) Storage device
JPS5925320B2 (en) Shared storage controller
JPH10283172A (en) Flash rom data rewrite system
CN102150132A (en) Information processing device
JPH0546328A (en) Staging method for semiconductor storage device
JP2001273014A (en) Programmable controller
JP3020776B2 (en) Process instrumentation system
JP3997505B2 (en) System program rewriting method for programmable controller
JPS605369A (en) Memory control system
JPH0261749A (en) Data transfer device

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20060301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060428

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060626

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060718

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060720

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3833897

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090728

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100728

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110728

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110728

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120728

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120728

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130728

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees