JPS62217308A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPS62217308A
JPS62217308A JP6143386A JP6143386A JPS62217308A JP S62217308 A JPS62217308 A JP S62217308A JP 6143386 A JP6143386 A JP 6143386A JP 6143386 A JP6143386 A JP 6143386A JP S62217308 A JPS62217308 A JP S62217308A
Authority
JP
Japan
Prior art keywords
interpolation
data
control unit
main control
control section
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
JP6143386A
Other languages
Japanese (ja)
Inventor
Akira Fujii
章 藤井
Koji Watanabe
渡辺 宏司
Kazuo Koike
和生 小池
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.)
NIPPON DENKI ROBOTSUTO ENG KK
NEC Corp
Original Assignee
NIPPON DENKI ROBOTSUTO ENG KK
NEC 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 NIPPON DENKI ROBOTSUTO ENG KK, NEC Corp filed Critical NIPPON DENKI ROBOTSUTO ENG KK
Priority to JP6143386A priority Critical patent/JPS62217308A/en
Publication of JPS62217308A publication Critical patent/JPS62217308A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To reduce the load of a main control part and to increase the data transfer speed by using only a bidirectional buffer to perform transfer of data between the main control part and an interpolation control part and therefore attaining the transfer of plural pieces of interpolation data at a time. CONSTITUTION:The interpolation data on each axis produced by a main control part 101 are written to an interpolation data area 121 of a bidirectional buffer 102 and then transferred to an interpolation arithmetic part 134. Then a start command is written to a control command area 122 of the buffer 102 by the part 101 and then analyzed after this information is received by a state control part 132. Thus the start informing signal is sent to the part 134 and the part 134 is set under a start state to start an interpolating operation. At the same time, the position update start signal is informed to a position control part 133. Thus the part 101 can read the memory in a position area 124 of the buffer 102 to monitor the position data on the part 134.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、数値制御装置に関し、特に高速に補間データ
の処理を行う数値制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a numerical control device, and particularly to a numerical control device that processes interpolated data at high speed.

〔従来の技術〕[Conventional technology]

従来の数値制御装置の補間制御部およびその前後の回路
をブロック図で示したものを第2図に示す。従来の数値
制御装置においては、主制御部101から補間制御部1
05へのデータの受渡しは、対象となる補間制御部のメ
モリに対してデータ量の多い補間データの場合は主制御
部がらDMA方式によって、データの書換えやポジショ
ンの読取り等の場合はハンドシェイク方式によって行わ
れており、DMA方式とハンドシェイク方式との混合の
方式が採用されている。
FIG. 2 shows a block diagram of the interpolation control section of a conventional numerical control device and the circuits before and after it. In the conventional numerical control device, from the main control section 101 to the interpolation control section 1
Data is transferred to 05 using the DMA method from the main control unit in the case of interpolated data that has a large amount of data in the memory of the target interpolation control unit, and in the case of data rewriting or position reading, the handshake method is used. A mixed method of DMA method and handshake method is adopted.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、このような従来の装置では、微少移動の
数値制御データ(NCデータ)が数多く続くような場合
、主制御部においてNCデータの作成や使用補間演算部
の選択や転送手段の選択や補間データ等の書込みや分配
完了の監視やポジションの読取り等の動作を行わなけれ
ばならないため、対象となる補間演算部が複数ある場合
に動作手順が複雑となって主制御部の負荷が大きくなり
、装置の性能上の問題となっている。従って本発明の目
的は、上述のような主制御部の負担を軽減するために、
主制御部から補間制御部へあるいは補間制御部から主制
御部へのデータの転送速度を高速化し、更に無駄時間の
削減を行って主制御部の負荷を軽減することにより、性
能のすぐれた数値制御装置を提供することにある。
However, in such conventional devices, when a large number of numerical control data (NC data) for minute movements continue, the main control unit creates the NC data, selects the interpolation calculation unit to be used, selects the transfer means, and processes the interpolated data. , etc., monitoring the completion of distribution, and reading the position. Therefore, when there are multiple interpolation calculation units to be processed, the operation procedure becomes complicated, increasing the load on the main control unit, and increasing the load on the main control unit. This has become a performance issue. Therefore, an object of the present invention is to reduce the burden on the main control unit as described above.
By increasing the speed of data transfer from the main control section to the interpolation control section or from the interpolation control section to the main control section, and further reducing wasted time and reducing the load on the main control section, excellent numerical performance has been achieved. The purpose is to provide a control device.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の数値制御装置は、主制御部と、前記主制御部と
補間制御部との間に介在し主制御部で作成されて前記補
間制御部へ送られる補間データもしくは制御コマンドま
たは補間制御部で作成されて主制御部へ送られるデータ
を一時記憶し前記主制御部から前記補間制御部へまたは
前記補間制御部から前記主制御部へ割込信号を送出する
割込ボートを有する双方向性バッファと、前記双方向性
バッファから前記補間データを入力して補間演算部へ送
出するデータ制御部と前記双方向性バッファから前記制
御コマンドを入力して前記補間演算部へ送出する状態制
御部と前記補間演算部からポジション演算データを入力
して前記双方向性バッファに送出するポジション制御部
と前記データ制御部からのデータ信号と前記状態制御部
からのコマンド信号とを入力して所定の補間演算とポジ
ション更新演算を行い前記補間演算結果をサーボ回路に
送出し前ポジション更新演算結果を前記ポジション制御
部へ送出する前記補間制御部とを備えて構成される。
The numerical control device of the present invention includes a main control section, interpolation data or control commands interposed between the main control section and the interpolation control section, and created by the main control section and sent to the interpolation control section, or an interpolation control section. A bidirectional device having an interrupt port for temporarily storing data created by and sent to the main control unit and sending an interrupt signal from the main control unit to the interpolation control unit or from the interpolation control unit to the main control unit. a buffer; a data control section that inputs the interpolation data from the bidirectional buffer and sends it to the interpolation calculation section; and a state control section that inputs the control command from the bidirectional buffer and sends it to the interpolation calculation section. A position control unit inputs position calculation data from the interpolation calculation unit and sends it to the bidirectional buffer; and a position control unit inputs data signals from the data control unit and command signals from the state control unit to perform predetermined interpolation calculations. and the interpolation control unit that performs a position update calculation, sends the interpolation calculation result to the servo circuit, and sends the previous position update calculation result to the position control unit.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して詳細に説
明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の一実施例を示すブロック図、第3図
は、第1図の双方向性バッファと補間制御部との詳細を
示すブロック図である。
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 3 is a block diagram showing details of the bidirectional buffer and interpolation control section of FIG. 1.

主制御部101は、数値制御プログラム(NCプログラ
ム)の補間データへの展開やオペレータからのスター1
〜・ストップ指令の制御等を行い、双方向性バッファ1
02の該当するエリアすなわち補間データエリア121
・制御コマンドエリア122等にデータを書込むことに
よって補間制御部103にデータを転送する。双方向性
バッファ102に書込まれたデータは、補間制御部10
3内のデータ制御部1.31・状態制御部132等によ
って処理されて補間演算部134へ転送され、補間演算
部134における演算結果の出力パルスが、サーボ回路
104へ転送されてモータMx・My −Mzを駆動す
る。
The main control unit 101 is responsible for developing a numerical control program (NC program) into interpolation data and receiving star 1 data from an operator.
~・Controls stop commands, etc., and bidirectional buffer 1
Corresponding area of 02, that is, interpolation data area 121
- Transfer the data to the interpolation control unit 103 by writing the data to the control command area 122 or the like. The data written to the bidirectional buffer 102 is transferred to the interpolation control unit 10.
The output pulses of the calculation results in the interpolation calculation unit 134 are transferred to the servo circuit 104 and output to the motors Mx and My. - Drive Mz.

次に第3図および第4図を参照して、補間データ処理の
動作の詳細について説明する。主制御部1、01で作成
され(第4回動作a)た各軸に対する補間データは、双
方向性バッファ1−02の補間データエリア121へ書
込まれ(第4回動作b)、補間データエリアを常時監視
している(第4図判断f)データ制御部131によって
各軸に対応する補間演算部134へ補間データを転送す
る(第4回動作g)。
Next, details of the operation of interpolation data processing will be explained with reference to FIGS. 3 and 4. The interpolation data for each axis created by the main control units 1 and 01 (fourth operation a) is written to the interpolation data area 121 of the bidirectional buffer 1-02 (fourth operation b), and the interpolation data The data control unit 131, which constantly monitors the area (decision f in FIG. 4), transfers interpolation data to the interpolation calculation unit 134 corresponding to each axis (fourth operation g).

尚、この時、主制御部101から補間制御部103への
データ転送は、補間演算部134が複数個ある場合も、
主制御部101から見てデータの転送先は、双方向性バ
ッファ102であって補間演算部134の物理的なアド
レスを考慮する必要はない。
Note that at this time, data transfer from the main control unit 101 to the interpolation control unit 103 is performed even when there are multiple interpolation calculation units 134.
From the perspective of the main control unit 101, the data transfer destination is the bidirectional buffer 102, and there is no need to consider the physical address of the interpolation calculation unit 134.

上述の動作によって補間演算部134は、補間データ有
りの状態となり(第4図判断j)、スタートコマンド待
ちの状態となる。ここで、主制御部101が、スタート
コマンドを双方向性バッファ102の制御コマンドエリ
ア122へ書込み(第4回動作c)、割込みボート1,
25によって、状態制御部132ヘデータ転送割込み通
知をすると、状態制御部132においてコマンド解析が
なされ(第4開動作h)て、補間演算部134ヘスタ一
ト通知信号が送られる(第4回動作i)。補間演算部1
34は、スタート状態(第4図判断k)となり、補間演
算動作を開始しく第4回動作β)、同時に状態制御部1
32のポジション制御部133へポジション更新スター
ト信号が通知される。
As a result of the above-described operation, the interpolation calculation unit 134 enters a state in which interpolation data is present (judgment j in FIG. 4), and enters a state in which it waits for a start command. Here, the main control unit 101 writes the start command to the control command area 122 of the bidirectional buffer 102 (fourth operation c),
25 sends a data transfer interrupt notification to the state control unit 132, the command is analyzed in the state control unit 132 (fourth opening operation h), and a start notification signal is sent to the interpolation calculation unit 134 (fourth operation i). ). Interpolation calculation unit 1
34 enters the start state (judgment k in FIG. 4), starts the interpolation calculation operation (fourth operation β), and at the same time, the state control unit 1
A position update start signal is notified to the position control unit 133 of 32.

ポジション制御部133はこれを双方向性バッファのポ
ジションエリア124へ送り、主制御装置はこれを入力
してポジションデータの更新を始める(第4回動作e)
。この結果、主制御部101は、常時補間演算部134
のポジションデータを双方向バッファのポジションエリ
アのメモリを読取る形で監視できる。
The position control unit 133 sends this to the position area 124 of the bidirectional buffer, and the main controller inputs this and starts updating the position data (fourth operation e).
. As a result, the main control unit 101 constantly controls the interpolation calculation unit 134.
The position data can be monitored by reading the memory of the position area of the bidirectional buffer.

補間演算部134からの分配完了信号を送出する場合は
、第5図のフローチャートに示すように補間演算部13
4から状態制御部132を通して双方向性バッファの補
間部状態エリア123に完了状態のデータを書込み(第
5囲動作p−q)、それと同時に割込みボート125を
通して主制御部101へ分配完了割込み通知をする(第
5回動作r)。その結果、主制御部101は、次の補間
データ等を双方向性バッファ102へ書込み(第5囲動
作s)、次のNCプログラムのサイクルへ入る。なお、
割込みボートと制御コマンド等の関係は、割込み線の数
や制御コマンドの数等が各種の数値制御装置によって異
なっているため、割込み線とコマンドが一致する場合、
制御コマンド等は、双方向性バッファへ転送する必要は
ない。
When sending the distribution completion signal from the interpolation calculation unit 134, the interpolation calculation unit 13
4 writes completion state data to the interpolation unit state area 123 of the bidirectional buffer through the state control unit 132 (fifth round operation p-q), and at the same time sends a distribution completion interrupt notification to the main control unit 101 through the interrupt boat 125. (5th action r). As a result, the main control unit 101 writes the next interpolated data etc. to the bidirectional buffer 102 (fifth operation s), and enters the next NC program cycle. In addition,
The relationship between interrupt ports and control commands, etc. differs depending on the number of interrupt lines and control commands depending on the numerical control device, so if the interrupt line and command match,
Control commands etc. do not need to be transferred to the bidirectional buffer.

なお第1図の実施例は、駆動するモータの数が3個の例
であるが、補間すべき軸数に制限はない。
Although the embodiment shown in FIG. 1 is an example in which the number of driven motors is three, there is no limit to the number of axes to be interpolated.

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

以上詳細に説明したように、主制御部と補間制御部との
間のデータの受渡しは、双方向性バッファのみによるの
で、主制御部は補間制御部の内部メモリのアドレスを考
慮する必要はなく、また双方向性バッファの構造を環状
バッファ構造等にすることにより、データ転送のために
同期をとる必要もなく、従って一度に複数個の補間デー
タの受渡しが可能となる。従って、主制御部の負荷が軽
減されまた、補間データ等のデータ転送を高速化できる
という効果がある。
As explained in detail above, data is exchanged between the main control unit and the interpolation control unit using only the bidirectional buffer, so the main control unit does not need to consider the internal memory address of the interpolation control unit. Furthermore, by making the structure of the bidirectional buffer into a circular buffer structure or the like, there is no need to synchronize for data transfer, and therefore, it is possible to transfer a plurality of interpolated data at once. Therefore, the load on the main control section is reduced, and data transfer such as interpolated data can be speeded up.

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

第1図は、本発明の一実施例のブロック図、第2図は、
従来の数値制御装置の一例のブロック図、第3図は、第
1図の実施例の双方向性バッファと、補間制御部との構
成の詳細を示すブロック図、第4図は、第1図の実施例
において主制御部から補間データを補間制御部へ渡して
補間演算部が起動するまでの動作を示すフローチャート
、第5図は第1図の実施例において補間演算部から分配
完了信号が主制御部へ通知されるまでの動作を示すフロ
ーチャートである。 図において、101・・・主制御部、102・・・双方
向性バッファ、103・・・補間制御部、104・・・
サーボ回路。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
FIG. 3 is a block diagram of an example of a conventional numerical control device, and FIG. 3 is a block diagram showing details of the configuration of the bidirectional buffer and interpolation control unit of the embodiment of FIG. 1. FIG. 5 is a flowchart showing the operation from passing interpolation data from the main control section to the interpolation control section to activating the interpolation calculation section in the embodiment shown in FIG. 3 is a flowchart showing the operation up to notification to the control unit. In the figure, 101... Main control unit, 102... Bidirectional buffer, 103... Interpolation control unit, 104...
servo circuit.

Claims (1)

【特許請求の範囲】[Claims] 主制御部と、前記主制御部と補間制御部との間に介在し
主制御部で作成されて前記補間制御部へ送られる補間デ
ータもしくは制御コマンドまたは補間制御部で作成され
て主制御部へ送られるデータを一時記憶し前記主制御部
から前記補間制御部へまたは前記補間制御部から前記主
制御部へ割込信号を送出する割込ボートを有する双方向
性バッファと、前記双方向性バッファから前記補間デー
タを入力して補間演算部へ送出するデータ制御部と前記
双方向性バッファから前記制御コマンドを入力して前記
補間演算部へ送出する状態制御部と前記補間演算部から
ポジション演算データを入力して前記双方向性バッファ
に送出するポジション制御部と前記データ制御部からの
データ信号と前記状態制御部からのコマンド信号とを入
力して所定の補間演算とポジション更新演算を行い前記
補間演算の結果をサーボ回路に送出し前記ポジション更
新演算の結果を前記ポジション制御部へ送出する前記補
間制御部とを備えることを特徴とする数値制御装置。
A main control section, and interpolation data or control commands interposed between the main control section and the interpolation control section and created by the main control section and sent to the interpolation control section, or created by the interpolation control section and sent to the main control section. a bidirectional buffer having an interrupt port for temporarily storing sent data and transmitting an interrupt signal from the main control section to the interpolation control section or from the interpolation control section to the main control section; and the bidirectional buffer. a data control unit that inputs the interpolation data from the bidirectional buffer and sends it to the interpolation calculation unit; a state control unit that inputs the control command from the bidirectional buffer and sends it to the interpolation calculation unit; and position calculation data from the interpolation calculation unit. a position control unit that inputs the data signal and sends it to the bidirectional buffer, a data signal from the data control unit, and a command signal from the state control unit, performs predetermined interpolation calculations and position update calculations, and performs the interpolation. A numerical control device comprising: the interpolation control unit that sends a result of the calculation to a servo circuit and sends the result of the position update calculation to the position control unit.
JP6143386A 1986-03-18 1986-03-18 Numerical controller Pending JPS62217308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6143386A JPS62217308A (en) 1986-03-18 1986-03-18 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6143386A JPS62217308A (en) 1986-03-18 1986-03-18 Numerical controller

Publications (1)

Publication Number Publication Date
JPS62217308A true JPS62217308A (en) 1987-09-24

Family

ID=13170929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6143386A Pending JPS62217308A (en) 1986-03-18 1986-03-18 Numerical controller

Country Status (1)

Country Link
JP (1) JPS62217308A (en)

Similar Documents

Publication Publication Date Title
JP2829091B2 (en) Data processing system
JPH0550022B2 (en)
WO1988004809A1 (en) System for controlling coprocessors
JPS62217308A (en) Numerical controller
JPH01214902A (en) Programmable controller
JPH02500692A (en) Integration of computational elements in multiprocessor computers
JPS62243008A (en) Signal trace controlling system for pmc
JPH0586581B2 (en)
JP2522047B2 (en) Programmable controller for device control
JPS6341970A (en) Microcomputer system
JPH0423005A (en) Simulation system for digital control system
JPH02108150A (en) Parallel decentralized processor of computer
JPH08106432A (en) Dma control circuit
JPH096425A (en) Multi-processor system
JPH0548490B2 (en)
JP2002297209A (en) Sequence program storing method in sequence controller
JPH05128279A (en) One-chip microcomputer
JPS6093573A (en) Distributed digital signal input device
JPH0245427B2 (en) ENHOKANSHISEIGYOSOCHI
JPH06149318A (en) I/o interface device
JPH0468459A (en) Digital signal processor
JPH01140302A (en) I/o module for programmable controller
JPH03141403A (en) Programmable controller
JPH05159042A (en) Picture processor
JPH06223046A (en) Bus tracing execution method