WO1984004408A1 - Data input device for numerical control apparatus - Google Patents

Data input device for numerical control apparatus Download PDF

Info

Publication number
WO1984004408A1
WO1984004408A1 PCT/JP1984/000201 JP8400201W WO8404408A1 WO 1984004408 A1 WO1984004408 A1 WO 1984004408A1 JP 8400201 W JP8400201 W JP 8400201W WO 8404408 A1 WO8404408 A1 WO 8404408A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
data
calculation
key
temporary
Prior art date
Application number
PCT/JP1984/000201
Other languages
French (fr)
Japanese (ja)
Inventor
Mitsuto Miyata
Masahiko Fukuda
Original Assignee
Fanuc Ltd
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 Ltd filed Critical Fanuc Ltd
Publication of WO1984004408A1 publication Critical patent/WO1984004408A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • G05B19/40931Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine concerning programming of geometry
    • G05B19/40936Defining geometry with a high level language
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present invention relates to a data input device of an NC (numerical control) device, and particularly when an input character string includes a formula, calculates the formula, displays the result on a display, and
  • the present invention relates to a technology for inputting the result to a predetermined storage location.
  • the data input device of the conventional NC device inputs the character string from the key input means to the temporary input buffer and simultaneously displays the contents on the display.
  • the data input processing unit identifies the input destination from the contents of the temporary input buffer. Temporary input to the corresponding storage location It only had the function of writing the contents of the buffer. Therefore, when calculating a certain mathematical formula and inputting the result, it was necessary to perform the calculation by another means and then input the key.
  • the present invention has been made in view of such circumstances. ]),
  • the purpose is that if the entered character string contains a formula, the result of calculating the formula can be input to the corresponding storage location, and the result of calculating the formula can be checked.
  • An object of the present invention is to provide a data input device for an NC device.
  • FIG. 2 is an explanatory diagram of the configuration of the present invention. Key input means
  • Characters input from the KB are stored in the temporary input buffer means BUF, and the display means DPY displays the contents of the temporary input buffer means BUF.
  • Formula calculation means ART when a calculation command is input from the key input means KB, calculates the formula stored in the temporary input buffer means BUF and temporarily replaces the content obtained by replacing the formula with the result. It is stored in the buffer means B UF. Therefore, the calculation result is displayed on the display means DPY.
  • Data input processing means DIN upon receiving an input instruction following a calculation instruction from the key input means, calculates the result of calculating the mathematical expression stored in the temporary input buffer means BUF and stores the result in a data storage.
  • Storage means for storage in MEM When the input command is input by the key input means KB before the calculation command is input, the data input processing means D IN performs the calculation as described above to obtain (4) Storage means for ⁇ ⁇ ⁇ ⁇ ⁇ MEM MEM MEM ⁇ ⁇ ⁇ ⁇ ⁇ , ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ .
  • FIG. 1 is an explanatory diagram of a conventional data input device of a numerical control device
  • FIG. 2 is an explanatory diagram of a configuration of the present invention
  • FIG. 3 is a data input device of an apparatus of the present invention.
  • Block diagram showing an example of the hardware configuration of an NC unit equipped with a computer.
  • Fig. 4 is a flowchart showing an example of the software configuration of a data input device.
  • FIG. 5 is a flowchart showing an example of a method of implementing step S7 in FIG. 4, and FIGS. 6 and 7 are numerical values using back notation.
  • Fig. 8 is an explanatory diagram of the program command
  • Fig. 9 is a software configuration example of another embodiment of the data input device of the present invention It is a flowchart that shows
  • FIG. 3 shows a device according to an embodiment of the present invention provided with a data input device.
  • FIG. 2 is a main block diagram showing an example of a hardware configuration of an NC unit, where 1 is a micro computer, 2 is a bus thereof, and 3 is a micro computer.
  • ROM that stores programs and the like necessary for causing the computer 1 to perform a predetermined operation.
  • 4 is a temporary input buffer area 4a, a work buffer area.
  • 4b Operation information storage area 4c, parameter setting area 4d.
  • Keyboard with multiple character input keys 9 d, 10 is a pulse generation circuit
  • 11 is a CRT control
  • 12 is an address switching circuit
  • 13 is an address Decoder
  • M is a data driver
  • 15 is a video RAM
  • 16 is a character generator ROM
  • 17 is a display section such as a CRT
  • 18 is a control circuit.
  • Reference numeral 19 denotes a servo amplifier
  • reference numeral 20 denotes a motor.
  • the NC command program when given in the form of command tape 7, it is stored in external memory 8 via tape reader 6, and when given and stored, it is stored in external memory 8. Directly from the memory, each is read and decoded by the micro computer 1, and the operation information is created. The normal NC operation is based on this operation information.]
  • the axis control circuit 18 is controlled, and the rotation of the motor 20 is controlled by the servo amplifier 19. Such an operation is well known from the past.
  • FIG. 4 is a flowchart showing an example of a software configuration of the data input device of this embodiment.
  • the microphone computer 1 receives the input.
  • the characters are sequentially stored in the temporary input buffer area 4a of the RAM 4 (S1 to S3), and the input characters are stored in a predetermined area of the video RAM 15 via the data driver 14, for example, Write in the area corresponding to the lower corner of the screen (S4).
  • the content of the video RAM 15 is determined by the scanning address of the CRT controller 11]? Is converted into display dot data by the character generator ROM 16 and input to the display unit 17 as a video signal. Therefore, characters entered from the keyboard 9 are displayed in the lower left corner of the CRT screen.
  • the micro computer 1 determines that the input key code is the calculation command key code. (S6), and calculates a mathematical expression in the temporary human resource area 4a, creates a character string in which the mathematical expression is replaced by the calculated numerical value, and stores the character string in the RAM.
  • the key code input is an input instruction key code [S5), if the contents of the temporary input of buffers region 4 a to cormorants I was done ⁇ Rasono The storage destination is identified.In this case, the command is a parameter change command.
  • ⁇ 115 is stored in the corresponding byte (S12).
  • S12 After completion of the data input processing of the call, also click Li ⁇ contents of the temporary input bus Tsu off ⁇ area 4 a one o'clock both Ru written in the video HAM 15 the phrase Li Asuru the contents of the input bus Tsu off ⁇ area And erase the display (S'14). If an error occurs during the data input process of step S12, an error is displayed (
  • FIG. 5 is a flowchart showing an example of a method for implementing step S7 in FIG. 4.
  • the data number part (the part of 4061) is stored in RAM as it is.
  • ⁇ Operator> ( ⁇ + ⁇ ⁇ _ ⁇ V ⁇ , / ⁇ )
  • Fig. 6 and Fig. 7 show examples of flowcharts for numerical calculation using the above-mentioned back-hand notation. 3 ⁇ 4 ⁇ In the flowchart, error checking and processing are omitted.
  • O can be automatically input in millimeters.o
  • FIG. 9 is a flowchart showing an example of a hardware configuration of another embodiment of the data input device of the present invention.
  • a mathematical expression can be calculated by inputting a mathematical expression from a key input means such as a keyboard and inputting a calculation command from the key input means. Then, if an input command is input next, the contents of the given formula replaced with the result will be stored in the data storage means, and the formula will be calculated in advance as before. Entering the results eliminates the need for operations] ?, Setting parameters, setting tool offsets, or setting NC command programs including mathematical formulas is extremely easy. In addition, it is possible to improve the operability of NC equipment.
  • the processing time at the time of execution is shorter than that of the method calculated at the time of execution]), and there is an advantage that the load on the NC device is reduced accordingly.
  • the calculation results are displayed on the display. The operator can confirm it in advance.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

A data input device for a numerical control apparatus enables the input of data in the form of an equation. An equation input through a key input means (KB) is stored in a temporary input buffer (BUF). When a calculation command is input from the key input means (KB), an equation calculation means (ART) operates on the equation stored in the temporary input buffer (BUF) and then stores the result in the temporary input buffer (BUF), replacing the original equation with the result of the calculation. The result of the calculation is stored in a predetermined memory area in a data storage memory means (MEM) by a data input processing means (DIN) when an input command is input from the key input means (KB) after the calculation command.

Description

C D 明 細 数値制御装置のデー タ入力器 技 術 分 野  C D Description Data input device of numerical controller
本発明は N C ( 数値制御 ) 装置のデー タ 入力器に闋 し、 特に入力された文字列中に数式が含ま れている場 合、 その数式を計算して結果を表示器に表示させ、 且 つその結果を所定の格納場所へ入力する技術に関する も のである。  The present invention relates to a data input device of an NC (numerical control) device, and particularly when an input character string includes a formula, calculates the formula, displays the result on a display, and The present invention relates to a technology for inputting the result to a predetermined storage location.
背 景 技 術  Background technology
NC 装置のキー ボー ド等のキ ー入力手段か らデー タ を入力する場合に、 ある数式を計算 してその結果を入 力 したいと い う こ とが良 く ある。 と ころが、 従来の N C 装置のデー タ 入力器は、 例えぱ第 1 図に示すよ う に キ ー入力手段か らの文字列を一時入力バッ フ ァに入力 する と共にその内容を表示器に表示させ、 入力指令キ 一或はィ ン サ— ト キ一が押される と、 デー タ 入力処理 部で一時入力バッ フ ァ の内容か らその入力先を識別 し. 該当する格納場所に一時入力バ ッ フ ァの内容を書込む 機能を有 しているに過ぎなかった。 従つて、 ある数式 を計算してその結果を入力する場合には、 別途の手段 で計算を行なってからキー入力する必要があった。  When inputting data from a key input device such as a keyboard of an NC unit, it is often desirable to calculate a certain mathematical expression and input the result. On the other hand, the data input device of the conventional NC device, as shown in Fig. 1, inputs the character string from the key input means to the temporary input buffer and simultaneously displays the contents on the display. When the input command key or insert key is pressed, the data input processing unit identifies the input destination from the contents of the temporary input buffer. Temporary input to the corresponding storage location It only had the function of writing the contents of the buffer. Therefore, when calculating a certain mathematical formula and inputting the result, it was necessary to perform the calculation by another means and then input the key.
- 発 明 の 開 示  -Disclosure of the invention
本発明はこの よ う ¾事情に鑑みて為された も のであ ]) 、 その目的は、 入力された文字列中に数式が含まれ ている場合その数式を計算した結果を該当する格納場 所に入力 し、 且つその数式を計算した結果も 確認でき る よ う に した N C 装置のデー タ入力器を提供する こ と にある。 The present invention has been made in view of such circumstances. ]), The purpose is that if the entered character string contains a formula, the result of calculating the formula can be input to the corresponding storage location, and the result of calculating the formula can be checked. An object of the present invention is to provide a data input device for an NC device.
第 2 図は本発明の構成説明図である。 キー入力手段 FIG. 2 is an explanatory diagram of the configuration of the present invention. Key input means
KB から入力された文字は一時入力バ ッ フ ァ手段 BUF に記憶され、 表示手段 DPYは一時入力バ ッ フ ァ手段 B UFの内容を表示する。 数式計算手段 ARTは、 キ -入 力手段 K B から計算指令が入力される と、 一時入力パ ッ フ ァ手段 BUFに記億されている数式を計算 し数式を その結果で置き換えた内容を一時入カバ ッ フ ァ手段 B UF に記憶する。 従って、 計算結果が表示手段 DPYに 表示される。 Characters input from the KB are stored in the temporary input buffer means BUF, and the display means DPY displays the contents of the temporary input buffer means BUF. Formula calculation means ART, when a calculation command is input from the key input means KB, calculates the formula stored in the temporary input buffer means BUF and temporarily replaces the content obtained by replacing the formula with the result. It is stored in the buffer means B UF. Therefore, the calculation result is displayed on the display means DPY.
デー タ 入力処理手段 DINは、 キー入力手段か ら計算指 令に続いて入力指令があ る と、 前記一時入力バ ッ フ ァ 手段 BUFに記憶されている数式を計算 した結果をデー タ格鈉用記憶手段 MEMに記憶する。 計算指令が入力さ れる前に入力指令がキー入力手段 K B よ ]? 入力された と き、 デー タ入力処理手段 D INは、 上述の よ う な計算 を行 つてその結杲をデ一タ格鈉用記憶手段 MEMに記 憶するか、 或は計算処理を行なわずに、 一時入力バッ フ ァ手段のデー タ の入力処理を行な う 。 Data input processing means DIN, upon receiving an input instruction following a calculation instruction from the key input means, calculates the result of calculating the mathematical expression stored in the temporary input buffer means BUF and stores the result in a data storage. Storage means for storage in MEM. When the input command is input by the key input means KB before the calculation command is input, the data input processing means D IN performs the calculation as described above to obtain (4) Storage means for か に す る に MEM MEM MEM 、 、 、 、 、 、, ず ず 或 或 或 ず ず.
ΟΜΡΙ 図面の簡単な説明 ΟΜΡΙ BRIEF DESCRIPTION OF THE FIGURES
第 1 図は従釆におけ る 数値制御装置のテ'一 タ 入力器 の構成説明図、 第 2 図は本発明の構成説明図、 第 3 図 は本発明実施例装置の デ - タ 入力器を備えた NC 装置 のハ ー ド ウ エ ア構成例を示す要部 ブ ロ ッ ク 図、 第 4 図 はデー タ 入力器の ソ フ ト ウ ェ ア構成例を示す フ ロ ー チ ヤ ー ト 、 第 5 図は第 4 図に おける ス テ'ッ プ S 7 の実現 方法の一例を示す フ ロ ー チ ヤ一 ト 、 第 6 図及び第 7 図 はバ ッ カ ス表記法を用 いた数値計算の フ ロ ー チ ヤ一 ト 例、 第 8 図は プ ロ グ ラ ム 指令の説明図、 第 9 図は本発 明デ ー タ 入力器の別の実施例の ソ フ ト ウ エア構成例を 示す フ ロ ー チ ヤ — ト で あ る 。 FIG. 1 is an explanatory diagram of a conventional data input device of a numerical control device, FIG. 2 is an explanatory diagram of a configuration of the present invention, and FIG. 3 is a data input device of an apparatus of the present invention. Block diagram showing an example of the hardware configuration of an NC unit equipped with a computer. Fig. 4 is a flowchart showing an example of the software configuration of a data input device. FIG. 5 is a flowchart showing an example of a method of implementing step S7 in FIG. 4, and FIGS. 6 and 7 are numerical values using back notation. Fig. 8 is an explanatory diagram of the program command, Fig. 9 is a software configuration example of another embodiment of the data input device of the present invention It is a flowchart that shows
発明を実施するための最良の形態 第 3 図は本発明実施例装置のデ— タ 入力器を備えた BEST MODE FOR CARRYING OUT THE INVENTION FIG. 3 shows a device according to an embodiment of the present invention provided with a data input device.
NC 装置の ハ ー ド ウ エ ア構成例を示す要部 ブ ロ ッ ク 図 であ 、 1 は マ イ ク ロ コ ン ピ ュ ー タ 、 2 はその バ ス 、 3 は マ イ ク 口 コ ン ピ ュ ー タ 1 に所定の動作を行るわせ る のに必要な プ ロ グ ラ ム 等を記憶させた ROM、 4 は一 時入力 バ ッ フ ァ領域 4a , ワ ー ク バ ッ フ ァ領域 4b . 運転 情報記憶領域 4c , パ ラ メ — タ 設定用領域 4d . 工具補正 量設定領域 4e 等の記憶領域を有する RAM、 5 はア ド レ ス デ コ ー ダ、 6 は テ ー プ リ ー ダ、 7 は指令テー プ、 8 は磁気バ ブル メ モ リ 等の外部 メ モ リ 、 9 は入力指令 キ ー 9a, 計算指令キ ー 9b . その他の複数個の指令キ ー 9 c . 複数個の文字入力キ ー 9 d を有する キー ボー ド、 10 は.パル ス発生回路、 11は CRT コ ン ト ロ ー 、 12はア ド レ ス切換回路、 13はア ド レ スデ コ ー ダ、 Mはデー タ ド ラ ィ バ、 15は ビデォ RAM、 16はキャ ラ ク タ ジ エネ レ ー タ ROM、 17は CRT等の デ ィ ス プレ イ 部、 18は翱制御回 路、 19はサ― ボ増幅器、 20はモ ー タ で あ る 。 NC 指令 プ ロ グラ ム ば、 指令テ ー プ 7 の形式で与え られた と き はテ ー プ リ ー ダ 6 を介 して、 外部 メ モ リ 8 に記憶され て与え られたと き はその メ モ リ か ら直接に、 それぞれ マ イ ク ロ コ ン ピュ ー タ 1 に よ 読取 られて解読され、 その運転情報が作成される。 通常の NC 運転は、 こ の 運転情報に よ ]? 軸制御回路 18が コ ン ト ロ ー ルされ、 サ 一 ボ増幅器 19に よ る モ — タ 20の回転制御が行 ¾われる。 この よ う な動作は従来か ら良 く 知 られている も のであ Ο FIG. 2 is a main block diagram showing an example of a hardware configuration of an NC unit, where 1 is a micro computer, 2 is a bus thereof, and 3 is a micro computer. ROM that stores programs and the like necessary for causing the computer 1 to perform a predetermined operation. 4 is a temporary input buffer area 4a, a work buffer area. 4b. Operation information storage area 4c, parameter setting area 4d. RAM with storage area such as tool compensation amount setting area 4e, 5 is address decoder, 6 is tapery , 7 is a command tape, 8 is an external memory such as a magnetic bubble memory, 9 is an input command key 9a, a calculation command key 9b. 9 c. Keyboard with multiple character input keys 9 d, 10 is a pulse generation circuit, 11 is a CRT control, 12 is an address switching circuit, 13 is an address Decoder, M is a data driver, 15 is a video RAM, 16 is a character generator ROM, 17 is a display section such as a CRT, and 18 is a control circuit. Reference numeral 19 denotes a servo amplifier, and reference numeral 20 denotes a motor. In the case of the NC command program, when given in the form of command tape 7, it is stored in external memory 8 via tape reader 6, and when given and stored, it is stored in external memory 8. Directly from the memory, each is read and decoded by the micro computer 1, and the operation information is created. The normal NC operation is based on this operation information.] The axis control circuit 18 is controlled, and the rotation of the motor 20 is controlled by the servo amplifier 19. Such an operation is well known from the past.
第 4 図は本実施例のデー タ入力器の ソ フ ト ウ ェア構 成例を示す フ ロ ー チ ャ ー ト で あ る。 NC 装置において、 記憶領域を節約する ために、 1 バ イ ト の パ ラ メ ー タ の 中に 2 個以上のデー タ を含ま せ、 例えば上位 4 ビ ッ ト と下位 4 ビ ッ ト を別の 目 的に使用する こ とが行 ¾われ ている。 こ の よ う る場合、 下位 4 ビ ッ ト のデー タ 例え ば 3 はそのま ま と し、 上位 4 ビ ッ ト のデー タ 例えば 9 を 7 に変更 したい と き 、 従釆の NC 装置では、 次の よ う に、 z ラ メ 一.タ 番号た とえぱ 40 6 1 , = . 1 1 5 を順に 入力 していた。 FIG. 4 is a flowchart showing an example of a software configuration of the data input device of this embodiment. In an NC unit, to save storage space, one byte parameter contains two or more data.For example, the upper 4 bits and the lower 4 bits are separated. It is used for the purpose. In such a case, if it is desired to change the lower 4 bits of data, for example, 3 from the upper 4 bits of data, for example, from 9 to 7, a conventional NC unit may be used. As shown below, the z-lamellar numbers are 40 6 1, =. I was typing.
4061 = 115 - ····· (1) しかし、 この よ う ¾操作よ ]? 、 次の よ う に、 パ ラ メ 一 タ番号 4061 , = . 上位 4 ビ ッ ト の変更後の値 7 , 乗 算記号 * , 16 , 加算記号 + , 下位 4 ビ ッ 卜 の値 3 を順 に入力 してい く 方が余程分 易い。 4061 = 115-··· (1) However, this operation] ?, the parameter number 4061, =. The changed value of the upper 4 bits 7 as follows: , Multiplication symbol *, 16, Addition symbol +, and the lower 4 bits of value 3 are easier to enter in this order.
4061 = 7 * 16 + 3 (2) この よ う な場合を例に採 ]9、 本実施例のデー タ 入力動 作を説明する。 4061 = 7 * 16 + 3 (2) Taking such a case as an example] 9, the data input operation of this embodiment will be described.
先ず、 キー ボー ド 9 の文字入力キ — 9dを使甩 して上 記(2)式の文字列を順次その頭か ら入力する と、 マ イ ク 口 コ ン ピュ ー タ 1 は入力された文字を RAM 4 の一時入 力バ ッ ファ領域 4a に順次格納する と 共に ( S1〜 S3 )、 入力された文字をデー タ ドラ イ バ 14を介 して ビデオ R AM 15の所定の領域、 例えば画面下隅に相当する領域 に書込む ( S4 )。 ビデオ RAM 15は公知の よ う にその内 容が CRTコ ン ト ロ ー ラ 11のス キ ャ ン用ァ ド レ ス に よ ]? 順次繰返 し読取されてお ]) 、 文字コ ー ドがキ ャ ラ ク タ ジェ ネ レ ー タ ROM 16にて表示 ドッ ト デー タ に変換され、 ビデオ信号 と してディ ス プレ イ 部 17に入力される。 従 つて、 キー ボー ド 9 か ら入力された文字は、 CRT画面 の左下隅等に表示される。 次いで、 キー ボー ド 9 の計算指令キ ー 9bを押すと、 マ イ ク ロ コ ン ピュ ー タ 1 は、 入力されたキ ー コ ー ドが 計算指令キ ー コ 一 ドである こ とを判別 し (S6 ) 、 一時 人力パッ フ ァ領域 4a中の数式を計算し、 数式部分を計 算した結果の数値で置き換えた文字列を作成 し、 RAM First, using the character input key 9d of the keyboard 9 to sequentially input the character string of the above expression ( 2 ) from the beginning of the character string, the microphone computer 1 receives the input. The characters are sequentially stored in the temporary input buffer area 4a of the RAM 4 (S1 to S3), and the input characters are stored in a predetermined area of the video RAM 15 via the data driver 14, for example, Write in the area corresponding to the lower corner of the screen (S4). As is well known, the content of the video RAM 15 is determined by the scanning address of the CRT controller 11]? Is converted into display dot data by the character generator ROM 16 and input to the display unit 17 as a video signal. Therefore, characters entered from the keyboard 9 are displayed in the lower left corner of the CRT screen. Then, when the calculation command key 9b of the keyboard 9 is pressed, the micro computer 1 determines that the input key code is the calculation command key code. (S6), and calculates a mathematical expression in the temporary human resource area 4a, creates a character string in which the mathematical expression is replaced by the calculated numerical value, and stores the character string in the RAM.
4 の ワ ー ク パッ フ ァ領域 4b に記憶する 〔 S7 ) o そ して、 数式中にエ ラ一がなければ、 ワ ー ク バ ッ フ ァ領域4 bの 内容を一時入力バ ッ フ ァ領域 4aに転送 し、 その内容で 前の內容を書き換える 〔S9)。 また、 書き換えた^の 一時入.カバ ッ フ ァ 4aの内容を ビデオ RAM 15に転送し、 先の内容を誉き換えるか或は先の内容と一緒に記憶す る CS10)。 従って、 前記 ( 式の場合は、 次の よ う な内 容がディ ス ブ レ イ 部 17の画面に表示される こ と になる。 4 Wa over click package stored in full § region 4b [S7) to o its, if there is no e la one in equation temporary input bus Tsu off § a word over click server Tsu off § region 4 b content of The data is transferred to the area 4a, and the previous contents are rewritten with the contents [S9]. Also, the rewritten ^ is temporarily entered. The contents of the buffer 4a are transferred to the video RAM 15, and the previous contents are changed or stored together with the previous contents (CS10). Therefore, in the case of the above (formula), the following contents are displayed on the screen of the display unit 17.
4061 = 115 (3) お、 数式中にエ ラ ーがあった場合は、 エ ラ —表示が 行なわれる 〔S8. S11) 。 4061 = 115 (3) If there is an error in the formula, the error is displayed (S8. S11).
次に、 オペ レ ー タが上記表示を確認し、 キーボー ド  Next, the operator confirms the above display and
9 の入力指令キ ー 9aを押すと、 マ イ ク ロ コ ン ピュ ー タ  Press the 9 input command key 9a, and the micro computer
1 は、 入力された キ ー コ ー ドが入力指令キ ー コ ー ドで ある と判別 し 〔S5 ) 、 従釆行なわれて た よ う に一時 入力バッ フ ァ領域4 aの内容か らその格納先を識別 し、 この場合パ ラ メ ー タ の変更指令であるから、 HAM の パ ラ メ ー タ設定用領域 4dにおけるデー タ 番号 4061 に 1 determines that the key code input is an input instruction key code [S5), if the contents of the temporary input of buffers region 4 a to cormorants I was done従釆Rasono The storage destination is identified.In this case, the command is a parameter change command.
ΟΜΡΙ 対応するバイ ト に 115 を記憶する (S12) 。 こ のデー タ 入力処理が済むと、 一時入力バ ッ フ ァ領域 4 aの内容を ク リ ァする と 共に ビデオ HAM 15に書込まれて る一時 入力バ ッ フ ァ領域 の内容 も ク リ ァ して表示を消去す る (S'14)。 な お、 ス テ ッ プ S12の デ ー タ 入力処理中に エ ラ ーが発生 した場合は、 エ ラ ー表示が行なわれる ( ΟΜΡΙ 115 is stored in the corresponding byte (S12). After completion of the data input processing of the call, also click Li § contents of the temporary input bus Tsu off § area 4 a one o'clock both Ru written in the video HAM 15 the phrase Li Asuru the contents of the input bus Tsu off § area And erase the display (S'14). If an error occurs during the data input process of step S12, an error is displayed (
S13) o ま た、 他の種類の指令キ ーが押された場合は、 押されたキ ー に よ 処理が分岐 し、 それぞれの処理ル 一チ ンで一時入力バッ ファ領域 4aの内容が解読されて 必要な処理が行なわれる ( S15)。 文字列を入力後、 計 算指令キ ー 9 b を押さずに直ちに入力指令キー 9 aを押 し た場合は、 本実施例の場合、 計算処理は行 われ い S13) o If another type of command key is pressed, processing branches depending on the pressed key, and the contents of the temporary input buffer area 4a are decoded by each processing routine. Then, necessary processing is performed (S15). After entering the string, if immediately press the Enter command key 9 a without pressing the calculation command key 9 b, in the present embodiment, not cracking computing row
( S 12 )。  (S12).
第 5 図は、 第 4 図のス テ ッ プ S7 の実現方法の一例 を示すフ ロ ー チャー ト であ 、 こ こでは、  FIG. 5 is a flowchart showing an example of a method for implementing step S7 in FIG. 4.
① デー タ番号の部分 ( 4061 の部分 ) をそのま ま RAM  ① The data number part (the part of 4061) is stored in RAM as it is.
4 の ワ ー ク バ ッ フ 了領域 4b に転送する。  Transfer to 4 work buffer area 4b.
② 「 =」 の入力を確認 して ワ ー ク バ ッ フ ァ領域 4bに  ② Check the input of “=” and enter in the work buffer area 4b.
転送する。  Forward.
③ 右辺の式の値を計算して これを文字列に変換 し、  ③ Calculate the value of the expression on the right side and convert it to a character string.
ワ ー ク バ ッ ファ領域 4bに転送する。  Transfer to work buffer area 4b.
等の処理が行なわれる。 なお、 本発明で採用 し得る数 式は上述の よ う な簡単な も のだけでな く 、 カ ツ コ付き の四則演算や、 サ イ ン , コ サ イ ン , 対数の各計算も 採 Are performed. The mathematical formulas that can be employed in the present invention are not only the simple ones described above, but also the four arithmetic operations with slashes and the calculations of Sine, Cosine, and Logarithm.
O PX 用可能である。 O PX Is available.
以下に、 バ ッ カ ス表記法を用いた数式演算のア ル ゴ リ ズ ム 例を示す。 The following is an example of an algorithm for mathematical operation using the backslash notation.
1) 数式の形式  1) Formula format
く式〉 =[Ψ -T ]く項〉 [<演算子〉く項 >」 Formula> = [ Ψ - T ] term>[<operator>term>]
ぐ項〉 = <数値〉 |, [τ<式〉 τ] τ1 <関数名 > Term> = <numerical value> |, [ τ <expression> τ ] τ 1 <function name>
τ く式 >ν] τ) τ formula> ν ] τ )
<演算子 > = ( ▼ + τ ▼ _▼ V ▼ , / Τ )  <Operator> = (▼ + τ ▼ _ ▼ V ▼, / Τ)
2) 使用ス タ ッ ク  2) Stack used
処理.上下記の二つのス タ ッ クを使用する。  Processing. The following two stacks are used.
① デー タ . ス タ ッ ク 演算対象と ¾る数値を格納するス タ ッ ク  (1) Data stack The stack that stores the values to be calculated
② 演算制御ス タ ッ ク  ② Arithmetic control stack
演算子 , 関数の演算実行が保留されている場合、 これらを コ ー ド化 して格納する。 また、 式のデコ 一 ド開始時及び力 ッ コに よ る式のネ スティ ングが 行なわれた時に、 ス タ ッ ク の底を表わすコ ー ドを 格納する。  If the execution of operators and functions is suspended, these are coded and stored. Also, at the start of the expression decoding and when the expression is nested by force, the code indicating the bottom of the stack is stored.
第 6 図及び第 7 図に上記バ ッ カ ス表記法を用いた数 値計算の フ ロ ー チャー ト 例を示す。 ¾ぉ、 同 フ ロ ー チ ヤー ト では、 エ ラ ーのチェ ッ ク と処理は省略してある。  Fig. 6 and Fig. 7 show examples of flowcharts for numerical calculation using the above-mentioned back-hand notation. ¾ ぉ In the flowchart, error checking and processing are omitted.
デー タ入力時に計算処理を行 ¾ う事が有用 他の例 と しては、 次の よ う 場合がある。  It is useful to perform calculation processing when inputting data. Other examples are as follows.
(1) 例えば第 8 図に示すょ ぅ に、 原点 0カノら X軸に  (1) For example, as shown in Fig. 8,
OMPI 対し 30° の角度で距離 70 mmの点 Pに移動する動 き の ブ ロ グラ ム指令は、 先ず、 OMPI On the other hand, the program command for moving to point P at a distance of 70 mm at an angle of 30 ° is:
X 〔 70.0 * cos 〔 30.0〕 〕 Y 〔 70.0 * sin 〔 30.0〕〕 ; と して入力 して計算指令キ ー 9b を押すと、  X [70.0 * cos [30.0]] Y [70.0 * sin [30.0]]; and press the calculation command key 9b,
X 60.622 Y 35.0 ;  X 60.622 Y 35.0;
と い う 形に変換され、 表示される。 入力指令キ ー 9aを 押せば、 変換.されたプ ロ グ ラ ム指令が、 外部メ モ リ 8 の別途指定されたプロ グ ラ ム格納領域に記憶される。 Will be converted and displayed. Pressing the Enter command key 9a, conversion. Been profiles g command is stored in the separately specified pro gram stored regions of the external Note Li 8.
入力時は式のま ま で入力 し、 実行時に計算する方法よ When inputting, it is a way to enter the expression as it is and calculate it at runtime
も、 プ ロ グラ ム実行時の処理時間が少な く て済む利 点があ る o  Also has the advantage of requiring less processing time when executing the program.o
(2) 工具補正量は入力単位系で設定 し ¾ければ ¾ ら ¾いが、 本発明を用いれば、 オ ペ レ ー タ は機械の単位 系で工具補正量の入力が可能 と ¾ ]9、 その設定が容易 と ¾ る。 即ち、 入力単位系が ミ リ 系で機械がイ ン チ系 である場合でも 、 例えば 20番の工具補正量に 3Z4 ィ ン チを設定する操作と して、 (2) It is difficult to set the tool compensation amount in the input unit system. However, if the present invention is used, the operator can input the tool compensation amount in the machine unit system. The setting is easy. That is, the input unit system is in millimeter system and the operation machine to set 3 Z 4 fin Chi the tool offset amount y even when emissions are Chi system, for example No. 20,
20 = 25.4 * 3/4 20 = 25.4 * 3/4
をキ ー入力 し、 計算指令キ ー 9bを押せば、 Key and press the calculation command key 9b.
20 = 19.05  20 = 19.05
とい う 形に変換され、 自動的に ミ リ 系で入力可能であ る o O can be automatically input in millimeters.o
第 9 図は本発明デー タ 入力器の別の実施例の ン フ 卜 ウ ェア構成例を示すフ ロ ーチャ ー ト であ ]? 、 第 4 図の  FIG. 9 is a flowchart showing an example of a hardware configuration of another embodiment of the data input device of the present invention.
OM?I ひ0) フ ロ ー チ ャー ト と相違する と ころは、 ス テ ッ プ S 71 . S 72を付加 したこ とにある。 この為、 文字列入力後、 直ちに人力指令キ ー 9 aが押される と、 数式が含まれて いれば計算が行なわれた後、 所定の格納場所に計算し た結果が入力される。 この場合は、 計算した結杲は表 示され ¾い。 るお、 計算指令キ ー9 bが押される と、 一 時入力バ ッ フ ァ 4aの中の数式が計算され、 その結果が 文字列と ¾つて一時入力バ ッ フ 了 4aに戻され、 次いで 入力指令キー 9 aが押される と再度数式処理を行 う 構 成と しているが、 計算済みの結杲を利用する こ と も 勿 論可能である。 OM? I H 0) The difference from the flowchart is that steps S71 and S72 are added. Therefore, after the character string input immediately and pressed the manpower command key 9 a, after the calculation if it contains formulas were made, the results of calculation to a predetermined storage location is entered. In this case, the calculated result is displayed. That you, and pushed the calculation command key 9 b, is calculated formulas in temporary input server Tsu off § 4a, the result is returned to ¾ connexion temporary input server Tsu full completion 4a string, then Although the input command key 9 a is again a row cormorants configure the algebra and pressed, and this utilizing precomputed imaging杲also Certainly theory possible.
以上説明 した よ う に、 本発明のデー タ 入力器に依れ ば、 数式をキ ー ボー ド等のキー入力手段よ 入力 し、 キ -入力手段か ら計算指令を入力すれば数式が計算さ. れ、 次 で入力指令を入力すれば与え られた数式をそ の結果で置き換えた内容がデ - タ格納用記憶手段に記 憶されるか ら ·、 従来の よ う に数式を予め計算しその結 果を入力する といつた操作が不要にな ]? 、 パ ラ メ ー タ の設定 , 工具補正量の設定或は数式を含む NC 指令プ ロ グラ ム の設定等が非常に楽に ]? 、 NC 装置の操作 性等を向上させる こ とが可能と ¾る。 特に NC 指令ブ 口 グ ラ ム の場合は、 実行時に計算する方式よ も実行 時の処理時間が少 ぐ ])、 その分 NC 装置の負荷が 減少する利点がある。 また、 計算結果は表示手段に表 示されるので、 オ ペ レ ー タ は予めその確認が可能と As described above, according to the data input device of the present invention, a mathematical expression can be calculated by inputting a mathematical expression from a key input means such as a keyboard and inputting a calculation command from the key input means. Then, if an input command is input next, the contents of the given formula replaced with the result will be stored in the data storage means, and the formula will be calculated in advance as before. Entering the results eliminates the need for operations] ?, Setting parameters, setting tool offsets, or setting NC command programs including mathematical formulas is extremely easy. In addition, it is possible to improve the operability of NC equipment. In particular, in the case of the NC command block program, the processing time at the time of execution is shorter than that of the method calculated at the time of execution]), and there is an advantage that the load on the NC device is reduced accordingly. The calculation results are displayed on the display. The operator can confirm it in advance.
o  o
OMPI  OMPI

Claims

請 求 の 範  Scope of claim
数値制御装置のデータ 入力器において、 キ一 入力手 段と、 該キ —入力手段か ら入力された文字を し ^3 ¾ 一時入力パッ フ ァ手段と、 該一時入力パッ ファ手段の 記憶内容を表示する表示手段と、 前記キ ー 入力手段か らの計算指令入力時に前記一時入力バ ッ フ ァ手段に記 憶されている数式を計算し数式をその結果で置き換え た内容を前記一時入力バッ フ 了手段に記憶する数式計 算手段と、 前記キ -入力手段か らの計算指令に続 ぐ入 力指令の入力時に前記一時入力バッ フ ァ手段に記憶さ れている数式を計算した結果をデー タ格納用記 fe  In the data input device of the numerical controller, a key input means, a character input from the key input means, and a temporary input buffer means, and a storage content of the temporary input buffer means are stored. Display means for displaying, and when the calculation command is input from the key input means, the content stored in the temporary input buffer means is calculated, and the content obtained by replacing the formula with the result is used as the temporary input buffer. Means for calculating the mathematical expression stored in the input means, and the result of calculating the mathematical expression stored in the temporary input buffer means at the time of inputting the input command following the calculation instruction from the key input means. Data storage fe
に記憶するデー タ 入力処理手段とを具備 したこ と を特 徵とする数値制御装置のデー タ 入力器。 A data input device for a numerical control device, characterized by comprising a data input processing means for storing data in a computer.
O PI O PI
则,  则,
PCT/JP1984/000201 1983-04-21 1984-04-19 Data input device for numerical control apparatus WO1984004408A1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58070653A JPS59195708A (en) 1983-04-21 1983-04-21 Data input device of numerical controller

Publications (1)

Publication Number Publication Date
WO1984004408A1 true WO1984004408A1 (en) 1984-11-08

Family

ID=13437822

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1984/000201 WO1984004408A1 (en) 1983-04-21 1984-04-19 Data input device for numerical control apparatus

Country Status (2)

Country Link
JP (1) JPS59195708A (en)
WO (1) WO1984004408A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6271704U (en) * 1985-06-13 1987-05-08
JPS6237311U (en) * 1985-08-22 1987-03-05
JPS63167904A (en) * 1986-12-29 1988-07-12 Niigata Eng Co Ltd Numerical controller
JPS63114302U (en) * 1987-01-14 1988-07-23
JPS63211402A (en) * 1987-02-27 1988-09-02 Okuma Mach Works Ltd Data setting system for nc device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5412641A (en) * 1977-06-30 1979-01-30 Toshiba Corp Input method for computer numeral controller
JPS5875214A (en) * 1981-10-29 1983-05-06 Mitsubishi Electric Corp Numerical controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5412641A (en) * 1977-06-30 1979-01-30 Toshiba Corp Input method for computer numeral controller
JPS5875214A (en) * 1981-10-29 1983-05-06 Mitsubishi Electric Corp Numerical controller

Also Published As

Publication number Publication date
JPS59195708A (en) 1984-11-06

Similar Documents

Publication Publication Date Title
WO1984001634A1 (en) Graphic display apparatus
WO1984004408A1 (en) Data input device for numerical control apparatus
WO1995029432A1 (en) Control system
WO1984004409A1 (en) Data input device for numerical control apparatus
JPS6120902B2 (en)
JPH0464089B2 (en)
JPH0114617B2 (en)
JP3029812B2 (en) Operation error recovery method and apparatus, and computer-readable recording medium storing a program for causing a computer to execute the method
JPS6129909A (en) Numerical controller
JPS636555A (en) Typesetting system
JP3044052B2 (en) Character processor
JPS60189503A (en) Numerical controller
JPH0685169B2 (en) Document processing method
JP2520934B2 (en) Data processing device
JPS61105605A (en) Ladder editing system of programmable controller
JP2591938B2 (en) Method of modifying part program of numerical controller
JP2723236B2 (en) Character reader
JPH0537314Y2 (en)
JP2605664B2 (en) Small electronic calculator
JPS62159248A (en) Grammar checking system for input program
JPS6019231A (en) Document producing system
JPS61260293A (en) Display system
JPS5999538A (en) Conversion processing method of document data
JPH0535634A (en) Input editing a0nd processing system
JPH04283836A (en) Knowledge data base generation device

Legal Events

Date Code Title Description
AK Designated states

Designated state(s): US

AL Designated countries for regional patents

Designated state(s): DE FR GB