JPH0212308A - Data exchange system - Google Patents
Data exchange systemInfo
- Publication number
- JPH0212308A JPH0212308A JP16141288A JP16141288A JPH0212308A JP H0212308 A JPH0212308 A JP H0212308A JP 16141288 A JP16141288 A JP 16141288A JP 16141288 A JP16141288 A JP 16141288A JP H0212308 A JPH0212308 A JP H0212308A
- Authority
- JP
- Japan
- Prior art keywords
- data
- processor
- servo
- main processor
- port
- 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
Links
- 230000009977 dual effect Effects 0.000 claims abstract description 19
- 238000000034 method Methods 0.000 claims abstract description 13
- 238000010586 diagram Methods 0.000 description 9
- 101100328887 Caenorhabditis elegans col-34 gene Proteins 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 102100031584 Cell division cycle-associated 7-like protein Human genes 0.000 description 2
- 101000777638 Homo sapiens Cell division cycle-associated 7-like protein Proteins 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
Landscapes
- Multi Processors (AREA)
- Numerical Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は数値制御装置あるいはロボット制御装置のサー
ボデータを交換するデータ交換方式に関し、特にデータ
交換用にデュアルポートRAMを使用したデータ交換方
式に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a data exchange method for exchanging servo data of a numerical control device or a robot control device, and particularly relates to a data exchange method using a dual port RAM for data exchange. .
数値制御装置あるいはロボット制御装置ではサーボモー
タをより高速で、精度良く制御するために、ディジタル
サーボ制御方式が採用されている。In numerical control devices or robot control devices, a digital servo control method is adopted in order to control servo motors at higher speed and with higher precision.
このために、数値制御装置等を制御するメインプロセッ
サと、サーボモータを制御するサブプロセッサを中心と
したシステムが構成される。For this purpose, a system is configured that mainly includes a main processor that controls the numerical control device and the like, and a sub-processor that controls the servo motor.
第5図に従来の数値制御装置システムのブロック図を示
す。図において、1は数値制御装置全体を制御するメイ
ンプロセッサ、2はメインプロセッサlと後述のサーボ
プロセッサとのデータ交換用のRAMである。3はバッ
ファである。FIG. 5 shows a block diagram of a conventional numerical control device system. In the figure, 1 is a main processor that controls the entire numerical control device, and 2 is a RAM for data exchange between the main processor 1 and a servo processor, which will be described later. 3 is a buffer.
21はサーボモータを制御するためのサーボプロセッサ
、22はサーボモータの各種データを格納するRAMで
あり、23はバッファである。31〜33はそれぞれ2
1〜23と同様であるのでその説明は省略する。21 is a servo processor for controlling the servo motor, 22 is a RAM for storing various data of the servo motor, and 23 is a buffer. 31-33 are 2 each
Since it is the same as 1 to 23, the explanation thereof will be omitted.
ここでメインプロセッサ1はサーボモータを制御するた
めの補間データ等をRAM2に書き込み、サーボプロセ
ッサ21あるいは31はこのデータを読み込み、逆にサ
ーボプロセッサ21あるいは31は位置データ等をRA
M2に書き込み、これをメインプロセッサ1が読み込み
、互いにRAM2を介してデータを交換する。Here, the main processor 1 writes interpolation data etc. for controlling the servo motor to the RAM 2, the servo processor 21 or 31 reads this data, and conversely the servo processor 21 or 31 writes position data etc. to the RAM 2.
The data is written to M2, read by the main processor 1, and data is exchanged with each other via the RAM2.
第6図に従来の他の数値制御装置システムのブロック図
を示す、第6図では第5図との違いはデータ交換用のR
AM4を追加し、これに必要なバッファ5が追加されて
おり、その他は第′5図の構成と同じである。Fig. 6 shows a block diagram of another conventional numerical control system. In Fig. 6, the difference from Fig. 5 is the R
AM4 and the necessary buffer 5 are added, and the other configuration is the same as that of FIG. 5.
〔発明が解決しようとする課題〕
しかし、第5図に示す構成では、1個のflAM2でデ
ータを交換するために、制御すべき軸が増加し、サーボ
プロセッサ21等の数が増えるとRAM2がサーボプロ
セッサ21等に専有される時間が増加し、メインプロセ
ッサ1がRAM2にアクセスすると待機させられる場合
が多くなり、メインプロセッサの処理速度が低下し、数
値制御装置全体の制御に支障をきたす。逆に、サーボプ
ロセッサ21等もメインプロセッサ1がRAM2にアク
セスしている間は、RAM2にアクセスできず待機する
必要があり、サーボプロセッサ21等の処理速度も低下
し、サーボモータの電流制御等の処理速度が低下する。[Problems to be Solved by the Invention] However, in the configuration shown in FIG. 5, in order to exchange data with one flAM2, the number of axes to be controlled increases, and as the number of servo processors 21, etc. increases, the RAM2 becomes The time occupied by the servo processor 21 and the like increases, and when the main processor 1 accesses the RAM 2, it is often put on standby, which reduces the processing speed of the main processor and interferes with the overall control of the numerical control device. Conversely, while the main processor 1 is accessing the RAM 2, the servo processor 21 etc. cannot access RAM 2 and must stand by, which reduces the processing speed of the servo processor 21 etc. and makes it difficult to control the current of the servo motor. Processing speed decreases.
第6図のように、データ交換用専用のRAM4を設けれ
ば、この問題は解決できるが、RAM4及びそれに付随
するバッファ5等のハードウェアが増加し、さらにRA
M2とRAM4間でのデータの転送処理も必要となる。As shown in Fig. 6, this problem can be solved by providing a dedicated RAM 4 for data exchange, but this increases the amount of hardware such as the RAM 4 and accompanying buffer 5, and further increases the
Data transfer processing between M2 and RAM4 is also required.
本発明はこのような点に鑑みてなされたものであり、デ
ータ交換用にデュアルポートRAMを使用したデータ交
換方式を提供することを目的とする。The present invention has been made in view of the above points, and an object of the present invention is to provide a data exchange method using a dual port RAM for data exchange.
方サーボプロセッサはデュアルポートRAMのシリアル
ポートを経由してデータを書き込み、読み出す、デュア
ルポー)RAMは内部で、ランダムポートとシリアルポ
ートの転送を行う。The servo processor writes and reads data via the serial port of the dual-port RAM, and the dual-port RAM internally performs transfer between the random port and the serial port.
本発明では上記課題を解決するために、数値制御装置あ
るいはロボット制御装置のサーボデータを交換するデー
タ交換方式において、装置全体を制御するメインプロセ
ッサと、サーボモータを制御するサブプロセッサと、前
記メインプロセッサとランダムポートで接続され、前記
サブプロセッサとシリアルポートで接続されたデュアル
ポートRAMと、
を有することを特徴とするデータ交換方式が、提供され
る。In order to solve the above problems, the present invention provides a data exchange method for exchanging servo data of a numerical control device or a robot control device, in which a main processor that controls the entire device, a sub-processor that controls a servo motor, and the main processor A data exchange method is provided, comprising: a dual-port RAM connected to the sub-processor via a random port; and a dual-port RAM connected to the sub-processor via a serial port.
メインプロセッサはデュアルポートRAMのランダムポ
ートにデータを書き込み、読み出す、−〔実施例〕
以下、本発明の一実施例を図面に基づいて説明する。The main processor writes and reads data to and from random ports of the dual port RAM. - [Embodiment] An embodiment of the present invention will be described below with reference to the drawings.
第1図は本発明の一実施例であるデータ交換方式のブロ
ック図を示す。図において、1は数値制御装置全体を制
御するメインプロセッサ、10はデータ交換用のデュア
ルポートDRAMであり、ランダムポート13とシリア
ルポート14の端子があり、ランダムポート13はメイ
ンプロセッサ1に結合されている。デュアルポートDR
AMIOの詳細は後述する。FIG. 1 shows a block diagram of a data exchange system that is an embodiment of the present invention. In the figure, 1 is a main processor that controls the entire numerical control device, 10 is a dual port DRAM for data exchange, and has terminals for a random port 13 and a serial port 14, and the random port 13 is connected to the main processor 1. There is. dual port DR
Details of AMIO will be described later.
21はサーボモータを制御するためのサーボプロセッサ
、22はサーボモータの各種データを格納するRAMで
あり、23はバッファである。31〜33はそれぞれ2
1〜23と同様であるのでその説明は省略する。RAM
22.32にはサーボモータの位置データ、速度データ
あるいはサーボモータの電流制御のためのプログラム等
が格納される。図に示すようにサーボプロセッサ21.
31等はデュアルポートDRAMIOのシリアルポート
14に接続されている。一般に数値制御装置の制御すべ
き1軸分に対して1個のサーボプロセッサが設けられる
。21 is a servo processor for controlling the servo motor, 22 is a RAM for storing various data of the servo motor, and 23 is a buffer. 31-33 are 2 each
Since it is the same as 1 to 23, the explanation thereof will be omitted. RAM
22.32 stores servo motor position data, speed data, a program for controlling the servo motor current, etc. As shown in the figure, servo processor 21.
31 etc. are connected to the serial port 14 of the dual port DRAMIO. Generally, one servo processor is provided for one axis to be controlled by a numerical control device.
ここでメインプロセッサ1はサーボモータを制御するた
めの補間データ等をデュアルポートDRAMIOに書き
込み、サーボプロセッサ21あるいは31はこのデータ
を読み込む、逆にサーボプロセッサ21あるいは31は
位置データ等をデュアルポートDRAMIOに書き込み
、これをメインプロセッサ1が読み込み、互いにデュア
ルボー)DRAMIOを介してデータを交換する。Here, the main processor 1 writes interpolation data etc. for controlling the servo motor to the dual port DRAMIO, and the servo processor 21 or 31 reads this data.Conversely, the servo processor 21 or 31 writes position data etc. to the dual port DRAMIO. The main processor 1 reads the data, and the data is exchanged with each other via the dual-baud (DRAMIO) DRAMIO.
第2図にデュアルポートDRAMの概略の構成図を示す
。図において、lOはデュアルポートDRAMであり、
メモリセル・アレイ11とデータレジスタ12から構成
されている。FIG. 2 shows a schematic configuration diagram of a dual port DRAM. In the figure, lO is a dual-port DRAM,
It consists of a memory cell array 11 and a data register 12.
メモリセル・アレイ11にはランダムポート13が接続
されており、外部からのデータを図示されていないアド
レス選択に従って記憶し、読み出すことができる。A random port 13 is connected to the memory cell array 11, and data from the outside can be stored and read out according to address selection (not shown).
一方、メモリセル・アレイllのデータはデータレジス
タ12に転送し、逆にデータレジスタ12のデータをメ
モリセル・アレイ11に転送することができる。メモリ
セル・アレイ11にはシリアルポート14が接続されて
おり、シリアルポート14を経由してデータをシリアル
に読み出し、入力することができる。On the other hand, data in memory cell array 11 can be transferred to data register 12, and conversely, data in data register 12 can be transferred to memory cell array 11. A serial port 14 is connected to the memory cell array 11, and data can be serially read and input via the serial port 14.
従って、メインプロセッサ1はランダムポート13から
補間データ等をメモリセル・アレイ11に書き込み、こ
の補間データはデータレジスタ12に転送され、シリア
ルポート14からサーボプロセッサ21等によって読み
出され、サーボモータがこれによって回転制御される。Therefore, the main processor 1 writes interpolated data etc. to the memory cell array 11 from the random port 13, and this interpolated data is transferred to the data register 12, read out from the serial port 14 by the servo processor 21, etc., and the servo motor is The rotation is controlled by
逆にサーボモータの位置、速度等のデータはシリアルポ
ート14からデータレジスタ12に読み込まれ、データ
レジスタ12からメモリセル・アレイ11に転送され、
ランダムポート13を経由して、メインプロセッサ1に
読み取られる。Conversely, data such as the position and speed of the servo motor is read into the data register 12 from the serial port 14, and transferred from the data register 12 to the memory cell array 11.
It is read by the main processor 1 via the random port 13.
ここで、メモリセル・アレイ11とデータレジスタ12
との転送はメモリ内部の転送であるので、非常に高速に
行われ、デュアルポートDRAMIOの外部からのデー
タの入出力に比べほぼ無視できる程度の時間である。従
って、メインプロセッサ1とサーボプロセッサ21.3
1等は内部の転送時間の制限を受けることな(、データ
の入出力。Here, the memory cell array 11 and the data register 12
Since the transfer is an internal transfer of the memory, it is performed at a very high speed, and the time required is almost negligible compared to the input/output of data from the outside of the dual port DRAMIO. Therefore, main processor 1 and servo processor 21.3
The first class is not subject to internal transfer time limitations (data input/output.
を行うことができ、相手側のデータの入出力のために待
機する等の時間は極めて少ない。The amount of time spent waiting for input/output of data on the other side is extremely small.
また、このようなデュアルポートDRAMは一般の市場
で簡単に入手することができる。勿論、本発明はデュア
ルポートDRAMでなくともデュアルポートRAMであ
れば適用可能である。Further, such dual port DRAMs are easily available in the general market. Of course, the present invention is applicable to any dual-port RAM other than a dual-port DRAM.
次にメインプロセッサとサーボプロセッサとのデータの
交換方式の詳細について述べる。第3図に本発明のデー
タの形式を示す。図において、40は交換すべき転送デ
ータである。Next, details of the data exchange method between the main processor and the servo processor will be described. FIG. 3 shows the data format of the present invention. In the figure, 40 is transfer data to be exchanged.
41はフラグ、42はデータであり、メインプロセッサ
1からサーボプロセッサ21へ転送されるデータである
。ここで、フラグはメインプロセッサ1がデータを書き
終わるとrllにセットされ、サーボプロセッサ21が
読み取るとrOlにリセットされる。41 is a flag, and 42 is data, which is data transferred from the main processor 1 to the servo processor 21. Here, the flag is set to rll when the main processor 1 finishes writing data, and is reset to rOl when the servo processor 21 reads it.
同様に43はフラグ、44はデータであり、メインプロ
セッサ1からサーボプロセッサ31へ転送される。Similarly, 43 is a flag and 44 is data, which are transferred from the main processor 1 to the servo processor 31.
また、45はフラグ、46はデータであり、サーボプロ
セッサ21からメインプロセッサ1へ転送される。同様
に47はフラグ、48はデータであり、サーボプロセッ
サ31からメインプロセッサ1へ転送される。ここで、
フラグ45はサーボプロセッサ21がデータを書き込ん
だときにrllにセットされ、メインプロセッサ1がデ
ータを読み込んだときにrolにリセットされる。フラ
グ47も同様である。Further, 45 is a flag, and 46 is data, which are transferred from the servo processor 21 to the main processor 1. Similarly, 47 is a flag and 48 is data, which are transferred from the servo processor 31 to the main processor 1. here,
The flag 45 is set to rll when the servo processor 21 writes data, and is reset to rol when the main processor 1 reads data. The same applies to the flag 47.
次にデータの転送の詳細について述べる。第4図にデー
タの転送のタイムチャート図を示す。図において、Sに
続く数値はステップ番号を示す。Next, details of data transfer will be described. FIG. 4 shows a time chart of data transfer. In the figure, the number following S indicates the step number.
すなわち、メインプロセッサ1は、以下のような処理を
実行する。That is, the main processor 1 executes the following processing.
〔S1〕サーボプロセツサに転送するデータを書き込む
。[S1] Write the data to be transferred to the servo processor.
〔S2〕転送データの書き込みが終了すると、フラグを
Filにセットする。[S2] When writing of the transfer data is completed, a flag is set to Fil.
〔S3〕次にメインプロセッサlはデータの読み込みを
行う、すなわちメインプロセッサ1が読み込むべきデー
タのフラグがrlJであるか確認する。[S3] Next, the main processor 1 reads data, that is, checks whether the flag of the data to be read by the main processor 1 is rlJ.
〔S4〕フラグがrlJであればデータを読み込む。[S4] If the flag is rlJ, read the data.
〔S5〕読み込んだデータのフラグをリセットする。[S5] Reset the flag of the read data.
このようなステップを実行して、サーボプロセッサに補
間データ等を転送し、逆にサーボモータの位置データ、
速度データ等を読み込む。By executing these steps, interpolation data etc. are transferred to the servo processor, and conversely, the servo motor position data,
Load speed data etc.
サーボプロセッサ21.31等も同様の処理を実行する
。その内容はステップ(Sil〕〜〔S15〕に示しで
あるが、メインプロセッサlの処理と同様であるので説
明は省略する。The servo processors 21, 31, etc. also perform similar processing. The contents are shown in steps (Sil) to [S15], but since they are the same as the processing of the main processor I, the explanation will be omitted.
このようにして、メインプロセッサ1とサーボプロセッ
サ21.31はデュアルポートDRAM10を介して、
互いの処理を停止することなく高速にデータを交換する
ことができる。In this way, the main processor 1 and the servo processor 21.31 are connected to each other via the dual port DRAM 10.
Data can be exchanged at high speed without stopping each other's processing.
上記の説明ではサーボプロセッサは2個の場合で説明し
たが、勿論3個以上の場合でも同じように実施できるし
、サーボプロセッサの数が多いほど本発明の効果が発揮
できる。In the above description, the case where there are two servo processors has been explained, but of course the same implementation can be performed even when there are three or more servo processors, and the effect of the present invention can be exhibited as the number of servo processors increases.
以上説明したように本発明では、デュアルボー)DRA
Mを介してメインプロセッサとサーボプロセッサがデー
タを交換するように構成したので、互いのプロセッサが
相手の処理を待つことな(、高速にデータを交換できる
。As explained above, in the present invention, dual baud) DRA
Since the main processor and the servo processor are configured to exchange data via M, data can be exchanged at high speed without the need for each processor to wait for the other's processing.
従って、メインプロセッサは数値制御装置全体の制御を
高速化でき、サーボプロセッサは電流制御等の処理をよ
り高精度に制御できる。Therefore, the main processor can speed up the control of the entire numerical control device, and the servo processor can control processes such as current control with higher precision.
第1図は本発明の一実施例であるデータ交換方式のブロ
ック図、
第2図はデュアルポートDRAMの概略の構成図、
第3図は本発明のデータの形式を示す図、第4図はデー
タの転送のタイムチャート図、第5図は従来の数値@御
装置システムのブロック図、
第6図は従来の他の数値制御装置システムのブロック図
である。
40・・・・・・−・・−・・・・転送データ特許出願
人 ファナック株式会社
代理人 弁理士 服部毅巖
1・・・・・・−・・・・・メインプロセッサ0−・・
・・・・・・・・−・−デュアルボー)DRAMl・・
・−・・・・・・・−メモリセル・アレイ2 ・・
データレジスタ
3・・・・・・・−・−・−・ランダムポート4・−・
・−・−・・・・・−・シリアルポートド・−・−・−
・−・−・サーボプロセッサ1 サーボプロセッ
サ
第3図
、、−40kf17−y
第5
図FIG. 1 is a block diagram of a data exchange system that is an embodiment of the present invention, FIG. 2 is a schematic configuration diagram of a dual port DRAM, FIG. 3 is a diagram showing the data format of the present invention, and FIG. A time chart of data transfer, FIG. 5 is a block diagram of a conventional numerical @control device system, and FIG. 6 is a block diagram of another conventional numerical control device system. 40・・・・・・・・・−・・・・・Transfer data patent applicant Fanuc Co., Ltd. agent Patent attorney Takeshi Hattori 1・・・・・・−・・・Main processor 0−・・・・
・・・・・・・・・−・−Dual Bow) DRAMl・・
・−・・・・・・・−Memory cell array 2 ・・
Data register 3・・・・・・・−・−・−・Random port 4・−・
・−・−・・・−・Serial port・−・−・−
・−・−・Servo processor 1 Servo processor Fig. 3, -40kf17-y Fig. 5
Claims (3)
データを交換するデータ交換方式において、装置全体を
制御するメインプロセッサと、 サーボモータを制御するサブプロセッサと、前記メイン
プロセッサとランダムポートで接続され、前記サブプロ
セッサとシリアルポートで接続されたデュアルポートR
AMと、 を有することを特徴とするデータ交換方式。(1) In a data exchange method for exchanging servo data of a numerical control device or a robot control device, a main processor that controls the entire device, a sub-processor that controls a servo motor, and a processor connected to the main processor through a random port, Dual port R connected to sub-processor via serial port
A data exchange method comprising: AM;
換すべきデータを書き込んだことを示すフラグをハンド
シェイク形式で確認することにより、互いにデータを交
換するデータ交換手段を有することを特徴とする特許請
求の範囲第1項記載のデータ交換方式。(2) The main processor and the sub-processor have data exchange means for exchanging data with each other by confirming in a handshake format a flag indicating that data to be exchanged has been written. Data exchange method described in scope 1.
を特徴とする特許請求の範囲第1項記載のデータ交換方
式。(3) The data exchange system according to claim 1, wherein the dual port RAM is a DRAM.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16141288A JPH0212308A (en) | 1988-06-29 | 1988-06-29 | Data exchange system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16141288A JPH0212308A (en) | 1988-06-29 | 1988-06-29 | Data exchange system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0212308A true JPH0212308A (en) | 1990-01-17 |
Family
ID=15734604
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16141288A Pending JPH0212308A (en) | 1988-06-29 | 1988-06-29 | Data exchange system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0212308A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007206813A (en) * | 2006-01-31 | 2007-08-16 | Delta Electronics Inc | AC servo system with distributed movement controller |
-
1988
- 1988-06-29 JP JP16141288A patent/JPH0212308A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007206813A (en) * | 2006-01-31 | 2007-08-16 | Delta Electronics Inc | AC servo system with distributed movement controller |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0212308A (en) | Data exchange system | |
| JP2545627B2 (en) | CPU interface method | |
| JPS6136845A (en) | single chip microcomputer | |
| JPS592058B2 (en) | Storage device | |
| JPH02132543A (en) | Information processor | |
| JPS6023384B2 (en) | Internal memory control method in array processor | |
| JP2767811B2 (en) | Video data processing device | |
| JP2687716B2 (en) | Information processing device | |
| JPS63307529A (en) | Inter-arithmetic processing unit communication control system | |
| JPH02257249A (en) | Information processing system | |
| JPH0261749A (en) | Data transfer device | |
| JPH01293456A (en) | Shared memory | |
| JP3063501B2 (en) | Memory access control method | |
| JPH10154005A (en) | Input/output control system for programmable controller | |
| JPH04319754A (en) | Data transfer system | |
| JP2581144B2 (en) | Bus control device | |
| JPH04117697A (en) | Multiport memory circuit | |
| JPS62241057A (en) | Circuit for increasing input/output processing speed | |
| JPH0685154B2 (en) | Intermediate buffer control method | |
| JPS61201326A (en) | Information processor | |
| JPS63197084A (en) | Dual port memory | |
| JPH02197961A (en) | Information processor | |
| JPH0348549B2 (en) | ||
| JPH05158859A (en) | Information processor | |
| JPH10177515A (en) | Digital signal processor |