JPH0348904A - Numerical controller - Google Patents
Numerical controllerInfo
- Publication number
- JPH0348904A JPH0348904A JP18403389A JP18403389A JPH0348904A JP H0348904 A JPH0348904 A JP H0348904A JP 18403389 A JP18403389 A JP 18403389A JP 18403389 A JP18403389 A JP 18403389A JP H0348904 A JPH0348904 A JP H0348904A
- Authority
- JP
- Japan
- Prior art keywords
- cnc
- information
- host computer
- storage
- instruction
- 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
- 230000005540 biological transmission Effects 0.000 abstract description 9
- 238000000034 method Methods 0.000 abstract description 5
- 238000012545 processing Methods 0.000 description 16
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000003754 machining Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、ホストコンピュータと加[プログラムなど
のデータ転送を行うCNCに関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a CNC that transfers data such as programs to a host computer.
第3図は従来のCNCのブロック図であり、第4図の受
信側に相当する。第2図において、(1)はCNC本体
である。CNC本体(1)は中央処理装置を含む制御部
(3)と加工プログラムなどのファイルを登録する記憶
部(6)とホストコンピュータから送信されてきたデー
タを受信する受信部(2)と制御部(3)の送信データ
処理手段(7)が準備したデータをホストコンピュータ
に送信する送信部(8)から構成されている。制御N(
3)は、受信部(2)で受信したデータをJSQ−AS
CII変換などの処理を行う受信データ処理手段(4)
と記憶部(6)のへ、グー情報を管理したり、記憶部(
6)にデータを書込んだり読み出したりする記憶部管理
手段(5)と記憶部管理手段(5)から読み出したデー
タを例えばASC11フードに変換するなどデータ転送
できる形に変換する送信データ処理手段(7)から構成
されている。FIG. 3 is a block diagram of a conventional CNC, and corresponds to the receiving side in FIG. 4. In FIG. 2, (1) is the CNC main body. The CNC main body (1) includes a control section (3) including a central processing unit, a storage section (6) for registering files such as machining programs, a reception section (2) for receiving data sent from the host computer, and a control section. It consists of a transmitter (8) that transmits the data prepared by the transmit data processing means (7) of (3) to the host computer. Control N(
3) sends the data received by the receiving unit (2) to JSQ-AS
Received data processing means (4) that performs processing such as CII conversion
and the storage section (6) to manage the goo information and the storage section (6).
6) storage management means (5) for writing and reading data; and transmission data processing means (5) for converting the data read from the storage management means (5) into a form that can be transferred, such as converting it into an ASC11 hood. 7).
上記のように構成された従来の数値制御装置において、
ホストコンピュータから受信したデータを記憶部(6)
に登録する場合の動作を説明する。In the conventional numerical control device configured as described above,
The data received from the host computer is stored in the storage unit (6).
This section explains the operation when registering.
第4図は、従来のホストコンピュータとCNCの間にお
いて加工プログラムなどのデータ転送を行う場合の処理
を示すフローチャートである。まずCNC側では受信部
(2)と送信部(8)の初期設定などのデータ転送する
ための初期処理を行う(25)ホストコンピュータ側も
同様に初期処理を行う(20)。次にホストコンピュー
タ側では、加工プログラムなどの送信するデータを読み
込み、送信データの準備を行う(21)。そして準備さ
れた送信データをCNCに送信する(22)。CNC側
では、ホストコンピュータから送信されたデータを受信
部(2)で受信して、受信データ処理手段(4)で例え
ばl5Q−ASCII変換などの処理を行い、このデー
タを記憶部管理手段(5)が記憶部(6)に登録する(
26)。次にホストコンピュータ側は、送信データをす
べて送信したかチエツクしく23)、送信データが残っ
ている場合には、 (21)(22)(23)を繰り返
す、送信データをすべて送信した場合は2通信デバイス
への終了設定などの終了処理を行って送信処理を終了す
る(24)。CNC側は、ホストコンピュータから最終
データを受信したかチエツクしく2g)、最終データを
受信していない場合は、 (26)(27)を繰り返す
最終データを受信した場合は、受信部(2)と送信部(
8)の終了設定などの終了処理を行って、受信終了(2
8)。FIG. 4 is a flowchart showing the process of transferring data such as machining programs between a conventional host computer and a CNC. First, the CNC side performs initial processing for data transfer, such as initial settings of the receiving section (2) and the transmitting section (8) (25).The host computer side also performs initial processing in the same way (20). Next, on the host computer side, data to be transmitted, such as a machining program, is read and the data to be transmitted is prepared (21). The prepared transmission data is then transmitted to the CNC (22). On the CNC side, the receiving section (2) receives data transmitted from the host computer, the received data processing section (4) performs processing such as 15Q-ASCII conversion, and the data is sent to the storage section management section (5). ) is registered in the storage unit (6) (
26). Next, the host computer side checks whether all the data to be sent has been sent23), and if there is any remaining data to be sent, repeats steps (21), (22), and (23). Termination processing such as termination settings for the communication device is performed and the transmission processing is terminated (24). The CNC side checks whether the final data has been received from the host computer (2g), and if the final data has not been received, repeat steps (26) and (27). Transmitter (
Perform the termination process such as the termination setting in 8), and finish the reception (2).
8).
従来のCNC装置は以上のように構成されているので、
ホストコンピュータからCNCへの加工プログラムなど
のデータ転送は、CNCの記憶部の情報をホストコンピ
ュータが得ることができないため、ホストコンピュータ
がCNCへ加工プログラムを送信開始後に、記憶容量オ
ーバーなどのエラーになり、正常に加工プログラムをC
NCに送信できない場合があるなどの問題点があった。Since the conventional CNC machine is configured as described above,
When transferring data such as machining programs from the host computer to the CNC, the host computer cannot obtain the information in the CNC's memory, so errors such as memory capacity overflow may occur after the host computer starts transmitting the machining program to the CNC. , successfully executed the machining program C
There were problems such as sometimes not being able to send data to the NC.
この発明は上記のような問題点を解消するために、なさ
れたもので、あらかじめCNCの記憶部の情報をホスト
コンピュータとCNCとの間で交信することによってホ
ストコンピュータがCNCの記憶部の情報を得ることが
できるので、記憶容量オーバーなどのエラーを未然に防
ぐことができる数値制御装置を得ることを目的とする。This invention was made in order to solve the above-mentioned problems, and by communicating the information in the storage section of the CNC between the host computer and the CNC in advance, the host computer can read the information in the storage section of the CNC. Therefore, it is an object of the present invention to provide a numerical control device that can prevent errors such as storage capacity overflow.
0課通を解決するための手段〕
この発明に係る数値制御装置は、ホストコンピュータか
らのCNCの記憶部情報要求コマンドを受信したときに
ホストコンピュータにCNCの記憶部の情報を通知でき
るようにCNCの制御部(3a)に本コマンドを検知す
るコマンド解析手段(8)とCNCの記憶部の情報を読
み出す記憶部tnn収取得手段9)を備えたことを特徴
とする。Means for Solving Section 0 Communication] The numerical control device according to the present invention is capable of notifying the host computer of the information in the storage unit of the CNC when receiving a command for requesting information on the storage unit of the CNC from the host computer. The control unit (3a) is characterized by being equipped with a command analysis means (8) for detecting this command and a storage section tnn acquisition means 9) for reading out information from the storage section of the CNC.
この発明における数値制御装置は、ホストコンピュータ
にCNCの記憶部の情報を通知できるようにすることに
より、ホストコンピュータ側は、CNCの空き記憶容量
などのCNCの記憶部の情報をあらかじめ得ることがで
き、CNCの空き記憶容量よりサイズの大きい加工プロ
グラムをCNCに送信してCNCが記憶容量オーバーな
どのエラーになることを未然に防ぐことができる。また
記憶容量オーバー発生後にCNCに登録された加工プロ
グラムを消去し、再びホストコンピュータが加工プログ
ラムをCNCに送信し直すという手順が必要なくなるた
め、ホストコンピュータのデータ転送の効率の向上を図
ることができる。The numerical control device of the present invention is capable of notifying the host computer of the information in the CNC storage section, so that the host computer side can obtain information on the CNC storage section such as the free storage capacity of the CNC in advance. , it is possible to prevent an error such as the CNC from exceeding its storage capacity by transmitting a machining program whose size is larger than the free storage capacity of the CNC to the CNC. Furthermore, since there is no need for the host computer to delete the machining program registered in the CNC after the memory capacity has been exceeded and to send the machining program again to the CNC, the efficiency of data transfer between the host computer and the host computer can be improved. .
以下、この発明の一実施例を図について説明する。第1
図において、(1)(2)(4)〜(8)は、第3図に
示した従来例と全く同じものを示す。第1図は第3図に
ホストコンピュータからのコマンドを解析するコマンド
解析手段(9)とコマンド解析手段(9)の指示を受け
て、記憶部(6)の情報を読み出す記憶部情報取得手段
(10)とコマンド解析手段(9)と記憶部情報取得手
段(10)を含む制御部(3a)を追加したものである
。An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, (1), (2), (4) to (8) are exactly the same as the conventional example shown in FIG. FIG. 1 shows a command analysis means (9) for analyzing commands from a host computer, and a storage information acquisition means (6) for reading out information from the storage section (6) in response to instructions from the command analysis means (9). 10) and a control section (3a) including a command analysis means (9) and a storage information acquisition means (10).
第2図は、この発明の動作を示すフローチャートである
。まず、CNC側では受信部(2)と送信部(8)の初
期設定などのデータ転送するための初期処理を行う(2
5)。ホストコンピュータ側も同様に初期処理を行う(
20)。次に、ホストコンピュータ側では2例えばCN
Cの空き記憶容量の情報を得るためにD C2(ASC
I Iコードの1211)、 A (ASCIIコード
の41H)、 D C4(ASCIIコードの1411
>のようなフォーマットの記憶部情報要求コマンドを送
信する(29)。CNC側ではこのコマンドを受信部(
2)で受信した後(32)、コマンド解析手段(9)に
て受信データを解析して解析したデータがDC2A D
C4のパターンならば記憶部情報取得手段(1o)に記
憶部(6)の空き記憶容量の情報を得るように指示する
。記憶部情報取得手段(10)は、コマンド解析手段(
9)からの指示で記憶部管理手段(5)から、空き記憶
容量の情報を読出して、送信データ処理手段(7)へ渡
す(33)。送信データ処理手段(7)は記憶部情報取
得手段(10)から受けたデータを例えばDC2(AS
CIIコードの+211)、l (ASCIIコードの
318)、 0(ASCIIコードの3011)、0
00 DC4(ASCIIコードの1411)のような
空き記憶容量が10000バイトを意味する1回答コマ
ンドを作成し、送信部(8)を通して、ホストコンピュ
ータに送信する(34)。ホストコンピュータは、CN
Cからの回答コマンドを受信した後(30)、 これ
から、CNCに送信しようとする加工プログラムの大き
さがCNCの空き記憶容量よりも小さいか判定しく31
)、大きい場合には従来技術と同様の終了処理を行って
送信処理を終了する(24)。大きい場合は、第4図の
従来技術のフローチャートの(21)、 (22)、
(23)、 (24)と同様の動作をする。これに対し
てCNC側は加工プログラムの受信ニついては第4図の
従来技術のフローチャートの(26)、 (27)、
(2g)と同様の動作をする。FIG. 2 is a flowchart showing the operation of the present invention. First, the CNC side performs initial processing for data transfer, such as initial settings of the receiving section (2) and the transmitting section (8).
5). The host computer side also performs initial processing (
20). Next, on the host computer side, 2, for example, CN
To obtain information on the free storage capacity of C, use D C2 (ASC
I I code 1211), A (ASCII code 41H), D C4 (ASCII code 1411)
29). On the CNC side, this command is sent to the receiving section (
After receiving the data in step 2) (32), the command analysis means (9) analyzes the received data and the analyzed data is sent to DC2A D.
If it is pattern C4, the storage section information acquisition means (1o) is instructed to obtain information on the free storage capacity of the storage section (6). The storage information acquisition means (10) includes a command analysis means (
9) reads out information on free storage capacity from the storage management means (5) and passes it to the transmission data processing means (7) (33). The transmission data processing means (7) converts the data received from the storage information acquisition means (10) into, for example, DC2 (AS
CII code +211), l (ASCII code 318), 0 (ASCII code 3011), 0
A 1-response command such as 00 DC4 (ASCII code 1411), which means free storage capacity is 10,000 bytes, is created and sent to the host computer through the transmitter (8) (34). The host computer is CN
After receiving the reply command from C (30), it is determined whether the size of the machining program to be sent to the CNC is smaller than the free storage capacity of the CNC (31).
), if it is larger, the same termination process as in the prior art is performed and the transmission process is terminated (24). If it is large, then (21), (22),
The operation is similar to (23) and (24). On the other hand, regarding the reception of the machining program on the CNC side, steps (26) and (27) in the flowchart of the prior art shown in FIG.
The operation is similar to (2g).
なお、上記実施例では、CNCの記憶部の情報について
は、空き記憶部で、エラーについては記憶容量オーバー
について説明したがCNCの記憶部の情報については残
り登録本数、エラーについては登録本数オーバーであっ
てもよく上記実施例と同様の効果を奏する。In the above embodiment, the information in the CNC storage section is explained as an empty storage section, and the error is explained as the storage capacity exceeded, but the information in the CNC storage section is explained as the number of remaining registrations, and the error is explained as the number of registrations exceeded. However, the same effect as in the above embodiment can be achieved.
また上記実施例では、記憶部情報要求コマンドとしTD
C2A DC4,回答:!77FとしrDc21G00
GDC4のフォーマブトのものを説明したがこれらは他
のフォーマットであってもよ(、上記実施例と同様の効
果を奏する。Further, in the above embodiment, the storage unit information request command is
C2A DC4, Answer:! 77F and rDc21G00
Although the GDC4 format has been described, other formats may also be used (the same effect as in the above embodiment will be achieved).
以上のように、この発明によれば、CNCの制御部(3
)に、コマンド解析手段(8)と記憶部情報取得手段(
9)を備えたので、ホストコンビ二一夕はあらかじめ、
CNCの空き記憶容量などの記憶部の情報を得ることが
でき、CNCが記憶容量オーバーなどのエラーになるこ
とを未然に防ぐことができる。また、エラーを回避する
ことによってエラー発生後のCNCの加工プログラムの
消去及び加工プログラムの再送信などの後処理をな(す
ことができ、ホストコンピュータのデータ転送の効率の
向上を図れる効果がある。As described above, according to the present invention, the CNC control section (3
), a command analysis means (8) and a storage information acquisition means (
9), the host combination Niichiyo has prepared the following in advance.
It is possible to obtain information on the storage unit such as the free storage capacity of the CNC, and it is possible to prevent errors such as overshooting of the storage capacity of the CNC. In addition, by avoiding errors, it is possible to perform post-processing such as erasing the CNC machining program and retransmitting the machining program after an error occurs, which has the effect of improving the efficiency of data transfer between the host computer. .
第1図は、この発明の一実施例におけるCNCのブロッ
ク図、第2図は、この発明の一実施例における通信動作
を示すフローチャート、第3図は従来のCNCのブロッ
ク図、第4図は、従来の通信動作を示すフローチャート
である。
図において、(1)は数値制御装置、(5)は記憶部管
理手段、(6)は記憶部、(7)は送信データ処理手段
(9)はコマンド解析手段、 (10)は記憶部情報取
得手段である。
なお、各図中、同一符号は、同一または相当部分を示す
。
第 lrj!JFIG. 1 is a block diagram of a CNC in an embodiment of the present invention, FIG. 2 is a flowchart showing communication operations in an embodiment of the invention, FIG. 3 is a block diagram of a conventional CNC, and FIG. 4 is a block diagram of a CNC in an embodiment of the present invention. , is a flowchart showing a conventional communication operation. In the figure, (1) is a numerical control device, (5) is a storage unit management means, (6) is a storage unit, (7) is a transmission data processing unit (9) is a command analysis unit, and (10) is storage unit information. It is a means of acquisition. Note that in each figure, the same reference numerals indicate the same or corresponding parts. No. lrj! J
Claims (1)
う)、に加工プログラムを送信する場合あらかじめ、C
NCの記憶部の情報をホストコンピュータに通知し、デ
ータ転送を行えることを特徴とする数値制御装置。When transmitting a machining program from a host computer to a numerical control device (hereinafter referred to as CNC), the CNC
A numerical control device characterized by being able to notify a host computer of information in a storage section of an NC and to perform data transfer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18403389A JPH0348904A (en) | 1989-07-17 | 1989-07-17 | Numerical controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18403389A JPH0348904A (en) | 1989-07-17 | 1989-07-17 | Numerical controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0348904A true JPH0348904A (en) | 1991-03-01 |
Family
ID=16146186
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP18403389A Pending JPH0348904A (en) | 1989-07-17 | 1989-07-17 | Numerical controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0348904A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10076731B2 (en) | 2009-06-05 | 2018-09-18 | Hoffman-La Roche Inc. | Combination stirrer |
-
1989
- 1989-07-17 JP JP18403389A patent/JPH0348904A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10076731B2 (en) | 2009-06-05 | 2018-09-18 | Hoffman-La Roche Inc. | Combination stirrer |
US11253826B2 (en) | 2009-06-05 | 2022-02-22 | Hoffmann-La Roche Inc. | Combination stirrer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0173747A1 (en) | System for coupling a visual sensor processor and a robot controller | |
CN1221145A (en) | Programmable controller | |
JPH0348904A (en) | Numerical controller | |
JPH07237067A (en) | Tool control device | |
JP3337050B2 (en) | IC card | |
JP2852664B2 (en) | Peripheral device automatic recognition method | |
JP2735112B2 (en) | Data read / write method of numerical controller | |
JPH03139717A (en) | Ic card command identification system | |
JPS6253046A (en) | Communication equipment for data of industrial robot | |
JP2000183875A (en) | Network management system and dynamic adding method for function | |
JP3227273B2 (en) | Link processing method of programmable controller | |
JP2641892B2 (en) | How to change the adapter identification number | |
JP2877176B2 (en) | SCSI device | |
JPS607524A (en) | Recording carrier reader | |
JP2804088B2 (en) | Setting method of peripheral device control information in computer system | |
JPS6398054A (en) | Intelligent i/o device | |
JP2001318710A (en) | System controller and data transmission/reception method in production system | |
Anderson et al. | The VAX/VMS device driver and user operation program for the Midwestern Astronomical Data Reduction and Analysis Facility PDS microdensitometer. | |
JPS62544B2 (en) | ||
JPH06214766A (en) | Generation system for hardware constitution information | |
JPH0280814U (en) | ||
JPH01171960A (en) | Printer apparatus | |
JPH0573276A (en) | Automatic system generating system | |
JPS63301352A (en) | Exchange system for file shared data with communication control | |
JPH04289060A (en) | Article discrimination device |