JPH012105A - Machine interface device - Google Patents
Machine interface deviceInfo
- Publication number
- JPH012105A JPH012105A JP62-158047A JP15804787A JPH012105A JP H012105 A JPH012105 A JP H012105A JP 15804787 A JP15804787 A JP 15804787A JP H012105 A JPH012105 A JP H012105A
- Authority
- JP
- Japan
- Prior art keywords
- machining program
- program data
- host computer
- computer system
- machine interface
- 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
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、上位計算機システムと数値制御装置(以下
、NC装置という)を接続し、NC装置に対し上位計算
機システムからの加工データを伝送する機械インターフ
エイヌ装置に関するものである。[Detailed Description of the Invention] [Industrial Application Field] This invention connects a host computer system and a numerical control device (hereinafter referred to as an NC device), and transmits processed data from the host computer system to the NC device. The present invention relates to mechanical interface devices.
従来の機械インターフェイス装置として第4図に示すも
のがあった。図において、(1)は命令を解読し内蔵し
たメモリ内のプログラムに従って実行する中央処理装置
、(2)は加工プログラムデータや他のデータを格納す
る主メモリであり、加工プログラムデータを循環的に一
時的に格納すると共に循環的に送出するリング式バッフ
ァとして機能する。(3)はNC装置(9)へ加工プロ
グラムデータを紙テープイメージで伝送するBTR(ビ
ハインド・テープ・リーダツインターフェイス回路、(
4)は上位計算機システム(7)との間でデータの交信
を行なう上位計算機インターフェイス回路、(9)は不
図示の機械例えば加工用機械を加工プログラムデータに
従って制御するNO装置である。機械インターフェイス
装置(8)は上述の符号(11〜(4)で示される構成
装置から構成されている。A conventional mechanical interface device is shown in FIG. In the figure, (1) is the central processing unit that decodes instructions and executes them according to the program in the built-in memory, and (2) is the main memory that stores machining program data and other data, which cyclically stores machining program data. It functions as a ring buffer that temporarily stores data and sends it out cyclically. (3) is a BTR (behind tape reader interface circuit) that transmits machining program data as a paper tape image to the NC device (9).
4) is a host computer interface circuit that communicates data with the host computer system (7); and (9) is an NO device that controls a machine (not shown), such as a machining machine, in accordance with machining program data. The machine interface device (8) is composed of the components indicated by the above-mentioned symbols (11 to (4)).
次に動作について説明する。Next, the operation will be explained.
上位計算機システム(力より機械インターフェイス装置
(8)に対し上位計算機インターフェイス回路(4)を
介して加工プログラムデータのダウンロード指示が与え
られる。An instruction to download machining program data is given to the machine interface device (8) from the host computer system (power) via the host computer interface circuit (4).
ダウンロード指示を受けた機械インターフェイス装置(
8)は、ダウンロード不可能であればダウンロード不許
可回答を、又、ダウンロード可能であればダウンロード
許可回答を上位計算機インターフェイス回路(4)を介
して上位計算機システム(7)へ回答する。The machine interface device that received the download instruction (
8) sends a download disallowance response if downloading is not possible, and a download permission response if downloading is possible to the host computer system (7) via the host computer interface circuit (4).
ダウンロード許可回答の時には、上位計算機システム(
7)よシ機械インターフェイス装置(8)に対して、上
位計算機インターフェイス回路で4)を介して加工プロ
グラムデータがダウンロードされ、加工プログラムデー
タを受信した機械インターフェイス装置(8)は、第6
図に示す加工プログラムデータ受信用バッファポインタ
の示すバッファ(2)の位置へ受信した加工プログラム
データを格納し、受信用バッファポインタを先に進め1
次に受信する加工プログラムデータにそなえる。引きつ
づき加工プログラムデータを受信すると受信用バツファ
ボインメに従って加工プログラムデータをバッファ(2
)に格納してゆき、この動作ヲ(シ返す。When responding to download permission, the host computer system (
7) Machining program data is downloaded to the machine interface device (8) via the host computer interface circuit 4), and the machine interface device (8) that has received the machining program data
The received machining program data is stored in the buffer (2) indicated by the machining program data reception buffer pointer shown in the figure, and the reception buffer pointer is advanced to 1.
Prepare for the machining program data to be received next. When machining program data is subsequently received, the machining program data is buffered (2
) and returns this action.
しかし、受信用バッファポインタがバッファ(2)のバ
ッファサイズにフル状態であると受信用バッファポイン
タはバッファ(2)の先頭に戻され加工プログラムデー
タの受信がつづけられる。However, if the reception buffer pointer is full to the buffer size of buffer (2), the reception buffer pointer is returned to the beginning of buffer (2) and reception of machining program data is continued.
上位計算機システム(7)よシ加工プログラムデータを
受信し、バッファ(2)に格納しようとした際。When receiving machining program data from the host computer system (7) and attempting to store it in the buffer (2).
受信用バッファポインタ全てにすでに加工プログラムデ
ータが格納されておシ、シかも封C装置(9)に対して
送信されていない時には、上位計算機システム(7)か
ら送られて来た加工プログラムデータはバッファ(2)
に格納出来ない為1機械インターフェイス装置(8)の
中央処理装置(1)は上位計算機システム(7)に対し
て上位計算機インターフェイス回路(4)を介してバッ
ファ(2)がフル状態であることを報知する。再び同一
加工プログラムデータが上位計算機システム(7)よシ
機械インターフェイス装置(8)K送られて来ると、受
信用バッファポインタと送信用バッファポインタを比較
し、バッファ(2)のフル状態(バッファフル状態〕が
つづいていればバッファ(2)のフル状態を前述同様に
報知し、バッファ(2)が空いていれば格納し、受信用
バッファポインタを進める。When machining program data has already been stored in all reception buffer pointers and has not yet been sent to the enclosure C device (9), the machining program data sent from the host computer system (7) is Buffer (2)
The central processing unit (1) of the first machine interface device (8) informs the host computer system (7) via the host computer interface circuit (4) that the buffer (2) is full. inform. When the same machining program data is sent again from the host computer system (7) to the machine interface device (8), it compares the receiving buffer pointer and the transmitting buffer pointer and determines the full state of the buffer (2) (buffer full). If status] continues, the full status of buffer (2) is notified in the same manner as described above, and if buffer (2) is empty, it is stored and the receiving buffer pointer is advanced.
一方、上記動作とは無関係のタイミングでNO装置(9
)から機械インターフェイス装置(8)K対してBTR
インターフェイス回路(3)を介してPTR起動要求が
送られて(る。PTR起動要求を受けた機械インターフ
ェイス装置(8)は、加工プログラムのデータバッファ
(2)にデータがあるかを確認し。On the other hand, at a timing unrelated to the above operation, the NO device (9
) to machine interface device (8) K to BTR
A PTR activation request is sent via the interface circuit (3). The machine interface device (8) that receives the PTR activation request checks whether there is data in the data buffer (2) of the machining program.
無い場合にはデータを送らないで次のPTR起動要求を
待ち同じ動作をする。データバッファ(2)にデータが
ある場合には、送信用バッファポインタ位置にある加工
プログラムデータをBTRインターフェイス回路(3)
を介してNO装置(9)に1キャラクタ送信し、送信用
バッファポインタを先に進める。又、PTR起動要求を
受けた際送信するデータが無い場合には、上記同様、何
も送信せずに次のPTR起動要求を待つ。If there is no data, it waits for the next PTR activation request and performs the same operation without sending data. If there is data in the data buffer (2), the machining program data located at the sending buffer pointer is sent to the BTR interface circuit (3).
1 character is transmitted to the NO device (9) via , and the transmission buffer pointer is advanced. Further, if there is no data to be transmitted when a PTR activation request is received, the next PTR activation request is waited for without transmitting anything, as described above.
機械インターフェイス装置(8)は上位計算機システム
(7)からの加工プログラムデータの受信と、 NO
装置(9)からのPTR起動要求が来る都度、前記の制
御処理を行ないNO装置(9)に対して加工プログラム
データ?分割なしに供給する。The machine interface device (8) receives machining program data from the host computer system (7) and
Every time a PTR activation request is received from the device (9), the control process described above is performed and the machining program data is sent to the NO device (9). Supply without division.
従来の機械インターフェイス装置は以上の様に構成され
ているので2機械インターフェイス装置を介して上位計
算機システムに接続されるIJc装置の台数が増加する
と上位計算機システムの負荷が太き(なり、NO装置か
らのPTR起動要求に対して加工プログラムデータを供
給できなくなシ。Since the conventional machine interface device is configured as described above, when the number of IJc devices connected to the host computer system via two machine interface devices increases, the load on the host computer system increases (and the load on the host computer system increases). Machining program data cannot be supplied in response to the PTR activation request.
No装置での加工が中断するなどの問題点があった。There were problems such as processing being interrupted with the No. 1 machine.
この発明は°上記のような問題点を解消するためになさ
れたもので、加工プログラムデータをリング式バッファ
により循環的に伝送する機能と、加工プログラムデータ
をファイルとして格納する機能をもち接続されるNo装
置の性能および加工プログラムデータのNC装置での実
行速度に応じて上位計算機システムからの指示でこれら
の機能を切υ換えることができ、NC装置からのPTR
起動要求に対して加工プログラムデータを跡切れること
なく供給できる機械インタフェイス装置を得ることを目
的とする。This invention was made to solve the above-mentioned problems, and has the function of cyclically transmitting machining program data using a ring buffer and the function of storing machining program data as a file. These functions can be switched by instructions from the host computer system according to the performance of the machine and the execution speed of machining program data on the NC machine, and the PTR from the NC machine
An object of the present invention is to obtain a machine interface device that can supply machining program data without any trace in response to a startup request.
この発明に係る機械インターフェイス装置は主メモリを
リング式バッファとして用い、補助メモリにより加工プ
ログラムデータのファイル管理を行ない、上位計算機シ
ステムからの指示によりリング式バッファと補助メモリ
を効果的に切シ換え。The machine interface device according to the present invention uses the main memory as a ring buffer, uses the auxiliary memory to manage files of machining program data, and effectively switches between the ring buffer and the auxiliary memory based on instructions from the host computer system.
上位計算機システムからの加工プログラムをNC装置に
供給する。The machining program from the host computer system is supplied to the NC device.
この発明における機械インターフェイス装置は。 The machine interface device in this invention is:
機械インターフェイス装置を介して接続されるN。N connected via a machine interface device.
装置の台数が増加しても、NC装置からのPTR起動要
求に対して跡切れることな(加工プログラムデータをN
C装置に供給する。Even if the number of devices increases, there will be no trace of PTR activation requests from NC devices (machining program data can be
Supply to C device.
以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.
第1図はこの発明の一実施例の全体を示す構成図である
。同図において、(1)は中央処理装置、(2)は加工
プログラムデータや他のデータを格納する主メモリ、(
3)はBTRインターフェイス回路、(4)は上位計算
機インターフェイス回路、(7)は上位計算機システム
、(8)は機械インターフェイス装置。FIG. 1 is a block diagram showing the entire structure of an embodiment of the present invention. In the figure, (1) is a central processing unit, (2) is a main memory that stores machining program data and other data, and (2) is a main memory that stores machining program data and other data.
3) is a BTR interface circuit, (4) is a host computer interface circuit, (7) is a host computer system, and (8) is a machine interface device.
(9)はNC装置であシ、従来例と同様な要素を示しそ
の説明を省略する。(5)は加工プログラムデータをフ
ァイルとして格納する補助メモリである。(9) is an NC device, and shows the same elements as the conventional example, and the explanation thereof will be omitted. (5) is an auxiliary memory that stores machining program data as a file.
次に動作について説明する。Next, the operation will be explained.
リング式バッファを経由してNC装置に加工プログラム
データを供給する手順を第2図により説明する。The procedure for supplying machining program data to the NC device via the ring buffer will be explained with reference to FIG.
上位計算機システム(7)よシ機械インターフェイス装
置(8)に対し上位計算機インターフェイス回路(4)
ヲ介して加工プログラムデータのダウンロード指示(リ
ング式バッフアラが与えられる。Upper computer interface circuit (4) for upper computer system (7) and mechanical interface device (8)
An instruction to download machining program data is given via a ring buffer.
ダウンロード指示(リング式バッファ)を受けた機械イ
ンターフェイス装置(8)は、ダウンロード不可能であ
ればダウンロード不許可回答を、又。The machine interface device (8) that receives the download instruction (ring buffer) sends a download denial response if the download is not possible.
ダウンロード可能であればダウンロード許可回答を上位
計算器インターフェイス回路(4)を介して上位計算機
システム(7)へ回答すると同時にリング式バッファへ
の格納フラグをオンとする。If the download is possible, a download permission response is sent to the host computer system (7) via the host computer interface circuit (4), and at the same time, the storage flag in the ring buffer is turned on.
以後は従来例と同様にリング式バッファに加工プログラ
ムデータを循環的に格納しながら、又−方でリング式バ
ッファから循環的に加工プログラムデータをNC装置に
供給する。Thereafter, machining program data is cyclically stored in the ring buffer as in the conventional example, and machining program data is also cyclically supplied from the ring buffer to the NC device.
次に補助メモ1月5)にファイルとして加工プログラム
データを格納しNC装置に加工プログラムデータを供給
する手順を第3図により説明する。Next, the procedure for storing the machining program data as a file in the auxiliary memo (January 5) and supplying the machining program data to the NC device will be explained with reference to FIG.
上位計算機システム(力よシ機械インターフェイス装置
(8)に対して上位計算機インターフェイス回路(4)
を介して加工プログラムデータのダウンロード指示(フ
ァイル)が与えられる。The host computer system (main computer interface circuit (4) for the machine interface device (8))
An instruction (file) to download machining program data is given via the .
ダウンロード指示(ファイル)を受けた機械インターフ
ェイス装置(8)はファイルフル等でダウンロード不可
能であればダウンロード不許可回答を又、ファイルに空
があシダランロード可能であればダウンロード許可回答
全上位計算機インターフェイス回路(4)を介して上位
計算機システム(7)へ回答すると同時釦補助メモリへ
の格納フラグをオンとする。The machine interface device (8) that receives the download instruction (file) returns a download denial response if the file is full and cannot be downloaded, and if the file is empty and can be loaded, it responds with a download permission response for all upper-level computer interface circuits. When the answer is sent to the host computer system (7) via (4), the storage flag in the button auxiliary memory is turned on.
ダウンロード許可回答の時には、上位計算機システム(
7)よシ機械インターフェイス装置(8)に対して、上
位計算機インターフェイス回路(4)を介して加工プロ
グラムデータがダウンロードされ7機械インターフェイ
ス装置(8)の補助メモリ(5)に格納され、エラーが
検知されることな(ダウンロードを終了すると、加工プ
ログラムデータはファイルとして補助メモ1月5)内に
登録され1機械インターフェイス装置(8)は上位計算
機システム(7)に対して上位計算機インターフェイス
回路(4)を介してダウンロード完了を報告する。エラ
ーが検知され正常に受信できないときにはダウンロード
不良を報告するO
補助メモ1月5)内には、ファイルとして加工プログラ
ムデータを複数本格納可能であり、上位計算機システム
(7)からの図示していない加工プログラムデータ削除
指示によりネ要となった加工プログラムデータを削除で
きる。又、補助メモ1月5)にはNC装置(9)へ加工
プログラムデータを供給するのと同時に異なった加工プ
ログラムデータを格納できる。When responding to download permission, the host computer system (
7) Machining program data is downloaded to the machine interface device (8) via the host computer interface circuit (4) and stored in the auxiliary memory (5) of the machine interface device (8), and an error is detected. (When the download is finished, the machining program data is registered as a file in the auxiliary memo (January 5)) and the machine interface device (8) sends the host computer interface circuit (4) to the host computer system (7). Report download completion via . If an error is detected and the data cannot be received normally, a download failure will be reported. The machining program data that has become necessary can be deleted by the machining program data deletion instruction. Further, different machining program data can be stored in the auxiliary memo (January 5) at the same time as machining program data is supplied to the NC device (9).
次に上位計算機システム(7)において加工開始条件が
整うと、上記計算機インターフェイス回路(4)を介し
て加工プログラムデータのサーチ指示が与えられ、指示
された加工プログラムデータが補助メモ1月5)内に格
納されていれば1機械インターフェイス装置(8)は、
加工プログラムデータの先頭ブロックへポインタをセッ
トし、上位計算機インターフェイス回路(4)を介して
サーチ完了を上位計算機システム(7)へ報告する。Next, when the machining start conditions are completed in the host computer system (7), a search instruction for machining program data is given via the computer interface circuit (4), and the specified machining program data is stored in the auxiliary memo (January 5). 1 Machine interface device (8) if stored in
A pointer is set to the first block of the machining program data, and the completion of the search is reported to the host computer system (7) via the host computer interface circuit (4).
NC装置(9)が自@起動状態になると、No装置(9
)よ、!7機機械インターフェイス装置+8に対してE
TRインターフェイス回路(3)を介してPTR起動要
求が与えられるので1機械インターフェイス装置(8)
の中央処理装置(1)は、あらかじめセットされたポイ
ンタブロックよシ、1キャラクタ単位でBTRインター
フェイス回路(3)を介してNC装置(9)へ加工プロ
グラムを伝送し、ポインタを1つ進める。When the NC device (9) enters the self@starting state, the No. device (9)
)Yo,! E for 7 machine machine interface device +8
1 machine interface device (8) since the PTR activation request is given via the TR interface circuit (3).
The central processing unit (1) transmits the machining program to the NC device (9) via the BTR interface circuit (3) character by character according to a preset pointer block, and advances the pointer by one.
再び、NC装置(9)からPTR起動要求が与えられる
とポインタブロックよυ1キャラクタ伝送し。Once again, when a PTR activation request is given from the NC device (9), the pointer block transmits υ1 character.
この動作を繰シ返すことにより加工作業を完了させる。By repeating this operation, the machining work is completed.
以上、接続されるNC装置の性能および加工プログラム
データのNC装置での実行速度に応じて。The above depends on the performance of the connected NC device and the execution speed of the machining program data on the NC device.
加工プログラムデータをリング式バッファにょシ循環的
に伝送する機能と、加工プログラムデータ乞ファイルと
して格納する機能を、上位計算機システムで切、!7換
える。The function of cyclically transmitting machining program data to a ring buffer and the function of storing machining program data as a file can be turned off in the host computer system! 7 Change.
以上のように、この発明釦よればリング式バッファ機能
としての主メモリおよびファイル機能としての補助メモ
リをもち、これらの機能を上位計算機システムからの指
示によυ切り換えることができるように構成したので、
No装置に対して上位計算機システムからの加工プログ
ラムデータを分割することなく与えることおよび上位計
算機システムに複数台のNC装置妙X接続された場合に
もNC装置に対して上位計算機システムの負荷にかかわ
らず加工プログラムデータを跡切れることな(与えるこ
とができ、しかもこれらの機能を簡単に選択できる機械
インターフェイス装置を得る効果がある。As described above, according to this invention button, it has a main memory as a ring buffer function and an auxiliary memory as a file function, and is configured so that these functions can be switched according to instructions from the host computer system. ,
It is possible to give the machining program data from the host computer system to the No. machine without dividing it, and even when multiple NC devices are connected to the host computer system, it is possible to provide the processing program data to the No. This has the effect of providing a machine interface device that can provide machining program data without any trace and that can easily select these functions.
M1図はこの発明の一実施例によるブロック図。
第2図、第3図はこの発明の動作の概略を示す動作説明
(2)、第4図は従来の機械インターフェイス装置の構
成を示すブロック図、第5図は従来の動作の概略を示す
動作説明図、第6図はリング式バッファのポインタの動
作を示す動作説明図である。
図において、(I)は中央処理装置、(2)は主メモリ
(リング式バッファ) 、 +31はBTRインターフ
ェイス回路、(4)は上位計算機インターフェイス回路
。
(5)は補助メモIJ、(71は上位計算機システム、
(8)は機械インターフェイス装置、(9)は数値制御
装置。
なお9図中、同一符号は同一、又は相当部分を示す。FIG. M1 is a block diagram according to an embodiment of the present invention. FIGS. 2 and 3 are operation explanations (2) showing an outline of the operation of the present invention, FIG. 4 is a block diagram showing the configuration of a conventional mechanical interface device, and FIG. 5 is an operation showing an outline of the conventional operation. FIG. 6 is an explanatory diagram showing the operation of the pointer of the ring buffer. In the figure, (I) is the central processing unit, (2) is the main memory (ring buffer), +31 is the BTR interface circuit, and (4) is the upper computer interface circuit. (5) is the auxiliary memo IJ, (71 is the upper computer system,
(8) is a mechanical interface device, and (9) is a numerical control device. In addition, in FIG. 9, the same reference numerals indicate the same or equivalent parts.
Claims (1)
モリを有し、上位計算機システムからダウンロードされ
た前記加工プログラムデータを前記主メモリまたは補助
メモリに格納し、該格納した加工プログラムデータを数
値制御装置の要求信号に応じて該数値制御装置に転送す
る機械インターフェース装置において、前記主メモリを
リング式バッファにより構成し、前記上位計算機システ
ムによりダウンロードされる加工プログラムデータを分
割することなく前記リング式バッファに循環的に格納し
ている間に前記リング式バッファに格納された加工プロ
グラムデータを前記リング式バッファから循環的に前記
数値制御装置に伝送できる機能および前記補助メモリに
前記上位計算機システムよりダウンロードされる加工プ
ログラムをファイルとして格納、前記数値制御装置に伝
送できる機能を有し、前記上位計算機システムからの指
示でこれらの機能を切り換えることができることを特徴
とする機械インターフェイス装置。It has a main memory and an auxiliary memory for storing machining program data, stores the machining program data downloaded from the host computer system in the main memory or the auxiliary memory, and sends the stored machining program data to the request of the numerical control device. In a machine interface device that transfers data to the numerical control device according to a signal, the main memory is configured with a ring buffer, and machining program data downloaded by the host computer system is cyclically transferred to the ring buffer without being divided. a function of being able to cyclically transmit machining program data stored in the ring buffer from the ring buffer to the numerical control device, and a machining program downloaded to the auxiliary memory from the host computer system; A machine interface device having a function of storing the information as a file and transmitting it to the numerical control device, and being able to switch these functions based on an instruction from the host computer system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62-158047A JPH012105A (en) | 1987-06-25 | Machine interface device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62-158047A JPH012105A (en) | 1987-06-25 | Machine interface device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS642105A JPS642105A (en) | 1989-01-06 |
| JPH012105A true JPH012105A (en) | 1989-01-06 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH012105A (en) | Machine interface device | |
| JP2645065B2 (en) | Information download system | |
| JPH06187066A (en) | Microprocessor with plural cpu | |
| JPS6292006A (en) | Machine interface device | |
| JPS5941214B2 (en) | Condition monitoring method | |
| JPS622346B2 (en) | ||
| JPS6182244A (en) | Inter-task data transmission/reception method | |
| JP3288158B2 (en) | Channel control method | |
| JP2001344222A (en) | Computer system | |
| JPH01263064A (en) | Printer device | |
| JP2723245B2 (en) | Facsimile storage and switching equipment | |
| JPS6361360A (en) | Inter-host job linking control system | |
| JPS63131640A (en) | Peripheral equipment for communication for computer | |
| JP2803270B2 (en) | SCSI host adapter circuit | |
| JPS63108855A (en) | electronic filing system | |
| JPH04320539A (en) | Arithmetic unit | |
| JPH03113503A (en) | Industrial computer | |
| JPH03131953A (en) | Inter-processor communication equipment | |
| JPH01163861A (en) | Communication control device | |
| JPH04239330A (en) | Data processing carry-on system | |
| JPS6350737B2 (en) | ||
| JPH01128149A (en) | Loading control system for control program of work station | |
| JPH04312138A (en) | Trace data store system | |
| JPH0417454B2 (en) | ||
| JPH02166519A (en) | Microprogram control method |