[go: up one dir, main page]

JPH01300307A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH01300307A
JPH01300307A JP13213988A JP13213988A JPH01300307A JP H01300307 A JPH01300307 A JP H01300307A JP 13213988 A JP13213988 A JP 13213988A JP 13213988 A JP13213988 A JP 13213988A JP H01300307 A JPH01300307 A JP H01300307A
Authority
JP
Japan
Prior art keywords
input unit
inch
millimeter
unit system
position data
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
JP13213988A
Other languages
Japanese (ja)
Inventor
Hideaki Kawamura
川村 英昭
Takao Sasaki
隆夫 佐々木
Toshiaki Otsuki
俊明 大槻
Ryoji Eguchi
江口 亮二
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP13213988A priority Critical patent/JPH01300307A/en
Publication of JPH01300307A publication Critical patent/JPH01300307A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To automatically display an accurate position for numerical control despite the switch of the input unit caused in the middle of an NC tape by applying the inch/millimeter or millimeter/inch conversion to the necessary position data and parameter when an input unit system varies. CONSTITUTION:An input unit change detecting part UCD discriminates the coincidence or non-coincidence between both input unit systems UN and UO and judges that the change is produced to the system UN supplied from an input unit system deciding part UTD in case non-coincidence is obtained between said two systems. This information is inputted to an inch/millimeter converting part IMC set on the next stage. The part IMC updates with the 2.54 multiple various parameters stored in a parameter memory part PRMM as well as various position data stored in a position data memory part PPTM as long as the input unit system changes to millimeter from inch. While these position data and parameters are updated with the 1/2.54 multiple in case the input unit system varies to inch from millimeter. Thus it is possible to automatically display an accurate position for numerical control even in case the input unit is switched in the middle of an NC tape NTP.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は数値制御装置に係り、特に入力単位系をインチ
、ミリで切り替え可能な数値制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a numerical control device, and more particularly to a numerical control device capable of switching the input unit system between inches and millimeters.

〈従来技術〉 数値制御装置には入力単位をインチ系とするか、メトリ
ック系とするかをGコードで選択できるものがある。か
かる数値制御装置においては、たとえば最小設定単位0
.0001 (inch)でNCテープを作成する場合
には、NCテープの先頭に入力単位系がインチであるこ
とを示すGコード(G20)を置き、一方最小設定単位
0.001 (nm)でNCテープを作成する場合には
、NCテープの先頭に入力単位系がメトリックであるこ
とを示すGコード(G21)を置く。
<Prior Art> Some numerical control devices allow selection of whether the input unit is inch or metric using a G code. In such a numerical control device, for example, the minimum setting unit is 0.
.. When creating an NC tape in 0.001 (inch), place a G code (G20) indicating that the input unit is inch at the beginning of the NC tape, and on the other hand, create an NC tape in the minimum setting unit of 0.001 (nm). When creating a metric, a G code (G21) indicating that the input unit system is metric is placed at the beginning of the NC tape.

〈発明が解決しようとしている課題〉 ところで、数値制御装置に設定されているパラメータ類
は、インチ系またはミリ系で設定されている。このため
、これらパラメータ類の単位系と入力単位系が異なると
、インチ/ミリ変換してパラメータを再設定する必要が
ある。しかし、かかる再設定の方法ではオペレータの負
担が大きくなると共に、NCテープにインチとミリの入
力単位系が混在している場合には対応できない。
<Problems to be Solved by the Invention> By the way, the parameters set in the numerical control device are set in the inch system or the millimeter system. Therefore, if the unit system of these parameters differs from the input unit system, it is necessary to perform inch/millimeter conversion and reset the parameters. However, such a resetting method imposes a heavy burden on the operator and cannot be used when the NC tape contains both inch and millimeter input units.

そこで、通常はオペレータの負担を軽減するために、あ
るいはインチ/ミリの単位系が混在する場合にも対応で
きるように、インチからミリに、あるいはミリからイン
チに切り替わった時、パラメータや表示位置データの小
数点位置をずらしている。たとえば、インチ系の最小入
力単位が0.0001 (inch)、メトリック系の
最小入力単位が0゜001(+nm)の場合には、入力
単位系がインチからミリに変化すればパラメータ、表示
位置データの小数点位置を左に1桁シフト(10倍)し
、逆に入力単位系がi IJからインチに変化すれば小
数点位置を右に1桁シフト (1/101するようにし
ている。
Therefore, in order to reduce the burden on the operator or to cope with cases where inch/millimeter unit systems are mixed, parameters and display position data are usually The decimal point position is shifted. For example, if the minimum input unit for the inch system is 0.0001 (inch) and the minimum input unit for the metric system is 0°001 (+nm), if the input unit system changes from inches to millimeters, the parameters and display position data will change. The decimal point position is shifted one digit to the left (10 times), and conversely, when the input unit system changes from iIJ to inches, the decimal point position is shifted one digit to the right (1/101).

しかし、かかる方法で1.?正確な位置表示ができず、
しかもパラメータ類もいいかげんな値となるため正しい
数値制御ができないという問題がある。
However, with this method, 1. ? Unable to display accurate location,
Furthermore, since the parameters are set to inappropriate values, there is a problem that correct numerical control cannot be performed.

以上から本発明の目的は、NCテープの途中で入力単位
がインチ−ミリまたはミリ−インチと切り替わっても、
自動的に正確な位置表示や設定通りのパラメータ値に基
づいた数値制御ができる数値制御装置を提供することで
ある。
From the above, it is an object of the present invention to provide the following advantages: Even if the input unit is switched between inches and millimeters or millimeters and inches during NC tape
It is an object of the present invention to provide a numerical control device that can automatically display an accurate position and perform numerical control based on set parameter values.

く課題を解決するための手段〉 第1図は本発明にかかる数値制御装置のブロック図であ
る。
Means for Solving the Problems> FIG. 1 is a block diagram of a numerical control device according to the present invention.

NTPはNCテープ、UTDは入力単位系判別部、UT
Mは入力単位系記憶部、UCDは入力単位変更検出部、
IMCはインチ/ミリ変換部、PDTMは位置データ記
憶部、PRMMはパラメータ記憶部、NCCは数値制御
部である。
NTP is NC tape, UTD is input unit system discriminator, UT
M is an input unit system storage unit, UCD is an input unit change detection unit,
IMC is an inch/millimeter conversion section, PDTM is a position data storage section, PRMM is a parameter storage section, and NCC is a numerical control section.

〈作用〉 NCデータによりインチ入力指定またはミリ入力指定す
ると共に、インチからミリに、またはミリからインチに
入力単位系が変化したことを識別し、入力単位系が変化
した時、必要な位置データ及びパラメータをインチ−ミ
リ変換あるいはミリ−インチ変換する。
<Function> In addition to specifying input in inches or millimeters using NC data, it also identifies that the input unit system has changed from inches to millimeters or from millimeters to inches, and when the input unit system changes, the necessary position data and Convert parameters from inch to millimeter or millimeter to inch.

〈実施例〉 第1図は本発明にかかる数値制御装置のブロック図であ
る。
<Embodiment> FIG. 1 is a block diagram of a numerical control device according to the present invention.

NTPはNCデータが記憶されたNCテープであり、以
降の入力単位系がインチ(最小設定単位は0.0001
インチとする)の場合にはGコード(G20)が用いら
れ、同様に以降の入力単位系がメトリック(最小設定単
位はO,001mとする)の場合には、Gコード(G2
1)が用いられる。
NTP is an NC tape in which NC data is stored, and the subsequent input units are inches (the minimum setting unit is 0.0001
In the case of inches), the G code (G20) is used; similarly, if the subsequent input unit system is metric (the minimum setting unit is O,001m), the G code (G20) is used.
1) is used.

UTDはNCデータに含まれるGコードrG20」、r
G21」を判別して入力単位系を識別する入力単位系判
別部、UTMは直前比の入力単位系を記憶する入力単位
系記憶部、UCDは指令された入力単位系UNと直前比
の入力単位系U0の一致/不一致に基づいて入力単位系
が変化したことを検出する入力単位系変更検出部、PD
TMは各種位置データを記憶する位置データ記憶部、P
’RMMは各種パラメータ類を記憶するパラメータ記憶
部、IMGは入力単位系が変化した時、位置データ及び
パラメータ類の単位をインチからミリに、あるいはミリ
からインチに変換するインチ/ミリ変換部、NCCはN
Cデータに基づいて周知の数値制御を実行する数値制御
部である。
UTD is the G code included in the NC data rG20", r
G21'' and identifies the input unit system, UTM is the input unit system storage unit that stores the input unit system of the immediately previous ratio, and UCD is the input unit system UN that is commanded and the input unit of the immediately previous ratio. PD, an input unit system change detection unit that detects a change in the input unit system based on coincidence/mismatch of system U0
TM is a position data storage unit that stores various position data, P
'RMM is a parameter storage unit that stores various parameters, IMG is an inch/millimeter conversion unit that converts the units of position data and parameters from inches to millimeters or from millimeters to inches when the input unit system changes, and NCC is N
This is a numerical control unit that performs well-known numerical control based on C data.

入力単位系が変化した時にインチ/メトリック変換を施
されるパラメータとしては、 座標系関係パラメータ、 送り速度関係パラメータ、 ストロークリミット関係パラメータ、 工具補正関係パラメータ、 固定サイクル関係パラメータ、 手動ハンドル送り関係パラメータ等 があり、同様にインチ/メトリック変換が施される位置
データとしては 相対位置、 絶対位置、 手動ハンドル割込量等がある。
Parameters that undergo inch/metric conversion when the input unit system changes include coordinate system related parameters, feed rate related parameters, stroke limit related parameters, tool compensation related parameters, fixed cycle related parameters, manual handle feed related parameters, etc. Position data that is similarly subjected to inch/metric conversion includes relative position, absolute position, manual handle interrupt amount, etc.

インチ/ミリ変換部IMCは、入力単位系がインチ(最
小設定単位は0.0001インチ)からミリ(最小設定
単位は0.001111I+1)に変化した場合には上
記パラメータ類及び位置データを2.54倍し、ミリか
らインチに変化した場合にはパラメータ及び位置データ
を2.54分の1にする。
The inch/millimeter conversion unit IMC changes the above parameters and position data to 2.54 when the input unit system changes from inch (minimum setting unit is 0.0001 inch) to millimeter (minimum setting unit is 0.001111I+1). If the value changes from millimeters to inches, the parameter and position data are reduced to 1/2.54.

以下、第1図の全体的動作を説明する。The overall operation of FIG. 1 will be explained below.

図示しない操作パネル上の起動釦が押圧されて数値制御
の起動が掛かれば、NGテープNTPから1ブロツクづ
つNCデータが読み取られて数値制御部NCCと入力単
位系判別部UTDに入力される。数値割肌部NCCは入
力されたNCデータに従って周知の数値制御処理を行う
。一方、入力単位系判別部UTDはNCデータが入力単
位系を指定するGコード(rG2(Jか「G21」)か
をチエツクする。NCデータが入力単位系を指定するG
コードでなければ入力単位系判別部UTDは何も圧力し
ない。そして、該NCデータに基づいて数値制御部NC
Cが所定の処理を終了すれば、次のNCデータが読み取
られ上記と同様の処理が行われる。
When a start button on the operation panel (not shown) is pressed to start the numerical control, NC data is read one block at a time from the NG tape NTP and input to the numerical control section NCC and the input unit system discriminating section UTD. The numerical control section NCC performs well-known numerical control processing in accordance with the input NC data. On the other hand, the input unit system determination unit UTD checks whether the NC data is a G code (rG2 (J or "G21") specifying the input unit system.
If it is not a code, the input unit system discriminator UTD does not apply any pressure. Based on the NC data, the numerical control unit NC
When C finishes the predetermined processing, the next NC data is read and the same processing as above is performed.

一方、NCデータが入力単位系を指定するGコードであ
れば、入力単位系判別部UTDはrG20」かrG21
Jかを判別し、判別結果(入力単位系)を示すデータU
Nを入力単位変更検出部UCDに入力する。
On the other hand, if the NC data is a G code specifying the input unit system, the input unit system determination unit UTD is rG20'' or rG21.
Data U indicating the determination result (input unit system)
Input N to the input unit change detection unit UCD.

入力単位変更検出部UCDには入力単位系記憶部LIT
Mから直前上の入力単位系を示すデータU0が入力され
ているから、該入力単位変更検出部UCDは′再入力単
位系UN、U0の一致/不一致を判別し、一致していれ
ば入力単位系に変更がないと判断し、不一致であれば入
力単位系判別部UTDから入力されている単位系UNに
入力単位系が変化したと判断し、その旨を次段のインチ
/ミリ変換部IMCに入力する。
The input unit change detection unit UCD has an input unit system storage unit LIT.
Since data U0 indicating the immediately above input unit system is input from M, the input unit change detection unit UCD determines whether the re-input unit system UN and U0 match or do not match, and if they match, the input unit is changed. It is determined that there is no change in the system, and if there is a mismatch, it is determined that the input unit system has changed to the unit system UN input from the input unit system determination unit UTD, and this fact is sent to the next stage inch/millimeter conversion unit IMC. Enter.

以上と並行して、入力単位系判別部UTDは前記判別結
果UNを入力単位系記憶部UTMに入力し、UNをU。
In parallel with the above, the input unit system discriminator UTD inputs the discrimination result UN to the input unit system storage section UTM, and converts UN into U.

とする(UN−Uo)。尚、電源投入後におけるUoは
、パラメータ等の単位系と同一の入力単位系となってい
る。
(UN-Uo). Note that after the power is turned on, Uo has the same input unit system as the unit system of parameters and the like.

インチ/ミリ変換部IMCは、インチからミリに入力単
位系が変化したものであれば、位置データ記憶部PDT
Mに記憶されている各種位置データ及びパラメータ記憶
部PRMMに記憶されている各種パラメータ類を2.5
4倍して更新し、ミリからインチに入力単位系が変化し
たものであれば位置データ及びパラメータ類をそれぞれ
2.54分の1  (1/2.54  倍)して更新す
る。
If the input unit system has changed from inches to millimeters, the inch/millimeter conversion unit IMC converts the position data storage unit PDT into
2.5 various position data stored in M and various parameters stored in parameter storage unit PRMM.
If the input unit system has changed from millimeters to inches, the position data and parameters are updated by multiplying by 2.54 (1/2.54 times).

以後、同様な処理が繰り返されることになる。Thereafter, similar processing will be repeated.

尚、数値制御部NCCは必要に応じて位置データ記憶部
PDTM及びパラメータ記憶部PRMMに記憶されてい
る位置データ及びパラメータ類を用いて所定の数値制御
処理を行う。
Note that the numerical control unit NCC performs predetermined numerical control processing using the position data and parameters stored in the position data storage unit PDTM and the parameter storage unit PRMM as necessary.

以上詳細に説明したが、第1図の1点鎖線で囲んだ部分
はマイコンで構成することもでき、かかる場合マイコン
は1ブロツクのNCデータが読み取られる毎に第3図に
示す流れ図に従ってインチ/メトリック変換処理を行う
As explained above in detail, the part surrounded by the dashed line in FIG. Performs metric conversion processing.

〈発明の効果〉 以上本発明によれば、NCデータによりインチ入力指定
またはミリ入力指定すると共に、インチからミリに、ま
たはミリからインチに入力単位系が変化したことを識別
し、入力単位系が変化した時、必要な位置データ及びパ
ラメータをインチ−ミリ変換あるいはミリ−インチ変換
するように構成したから、NCテープの途中で入力単位
がインチ−ミリまたはミリ−インチと切り替わっても、
自動的に正確な位置表示が可能であや、しかも設定通し
のパラメータ値に基づいた数値制御ができる。
<Effects of the Invention> According to the present invention, it is possible to specify inch input or millimeter input using NC data, identify that the input unit system has changed from inch to millimeter, or from millimeter to inch, and change the input unit system. Since the configuration is configured so that the necessary position data and parameters are converted from inch to millimeter or millimeter to inch when they change, even if the input unit changes between inch and millimeter or millimeter and inch in the middle of NC tape,
Accurate position display is possible automatically, and numerical control based on set parameter values is also possible.

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

第1図は本発明にかかる数値制御装置のブロック図、 第2図は入力単位系とGコードの対応関係図表、第3図
はインチ/メトリック変換処理の流れ図である。 NTP・・NCテープ、 UTD・・入力単位系判別部、 UTM・・入力単位系記憶部、 UCD・・入力単位変更検出部、 IMC・・インチ/ミリ変換部、 PDTM・・インチデータ記憶部、 PRMM・・パラメータ記憶部
FIG. 1 is a block diagram of a numerical control device according to the present invention, FIG. 2 is a correspondence chart between an input unit system and a G code, and FIG. 3 is a flowchart of inch/metric conversion processing. NTP: NC tape, UTD: Input unit system determination section, UTM: Input unit system storage section, UCD: Input unit change detection section, IMC: Inch/millimeter conversion section, PDTM: Inch data storage section, PRMM...Parameter storage unit

Claims (1)

【特許請求の範囲】 入力単位系をインチ、ミリで切り替え可能な数値制御装
置にいおいて、 NCデータによりインチ入力指定またはミリ入力指定す
ると共に、インチからミリに、またはミリからインチに
入力単位系が変化したことを識別し、入力単位系が変化
した時、必要な位置データ及びパラメータをインチ→ミ
リ変換あるいはミリ→インチ変換することを特徴とする
数値制御装置。
[Claims] In a numerical control device that can switch the input unit system between inches and millimeters, the input unit is specified as inch input or millimeter input using NC data, and the input unit is changed from inch to millimeter or from millimeter to inch. A numerical control device characterized by identifying that a system has changed, and converting necessary position data and parameters from inches to millimeters or from millimeters to inches when the input unit system changes.
JP13213988A 1988-05-30 1988-05-30 Numerical controller Pending JPH01300307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13213988A JPH01300307A (en) 1988-05-30 1988-05-30 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13213988A JPH01300307A (en) 1988-05-30 1988-05-30 Numerical controller

Publications (1)

Publication Number Publication Date
JPH01300307A true JPH01300307A (en) 1989-12-04

Family

ID=15074274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13213988A Pending JPH01300307A (en) 1988-05-30 1988-05-30 Numerical controller

Country Status (1)

Country Link
JP (1) JPH01300307A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60201405A (en) * 1984-03-26 1985-10-11 Yamazaki Mazak Corp Conversion controlling method of parameter in numerically controlled machine tool
JPS6252606A (en) * 1985-08-31 1987-03-07 Toyoda Mach Works Ltd Numerical controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60201405A (en) * 1984-03-26 1985-10-11 Yamazaki Mazak Corp Conversion controlling method of parameter in numerically controlled machine tool
JPS6252606A (en) * 1985-08-31 1987-03-07 Toyoda Mach Works Ltd Numerical controller

Similar Documents

Publication Publication Date Title
US5301198A (en) Method for debugging a program by executing a block mode run
JPH01300307A (en) Numerical controller
JPS63151851A (en) Chromatograph data processing equipment
JPH0296823A (en) Information processing device with an advice function based on usage history
JPH02308309A (en) Operation system for numerical controller
JPS61211732A (en) Display picture recognizing device
JP3359997B2 (en) Processing method of STM function command
JPH06119021A (en) Operation system for controller
JPH0150933B2 (en)
JP2943177B2 (en) Drawing device for XY coordinate axes with scale numerical value
JPS6277660A (en) Arithmetic device
JP2561130Y2 (en) Distributed control system
KR920001414B1 (en) Maintenance system for swithing center
JP2002214001A (en) Signal analysis processor
JPS61107401A (en) Program format converting system between numerical controller and programmable controller for machine tool
JPS6275712A (en) Part-program error detecting system in numerical controller
JPH04114207A (en) Work data preparing system for nc work machine
JP2527281Y2 (en) PROM programmer controller
JPS62251820A (en) Terminal equipment control system
Mazzaro et al. An LMI approach to model (in) validation of LPV systems
JPH0267618A (en) Procedure sentence displaying/correcting system
JPS6329825A (en) Interactive processing system
JPH04367004A (en) Numerical controller
JPH0216603A (en) Sequence program editing system
JPS63220312A (en) Control device for real time clock module