JPS62278607A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPS62278607A
JPS62278607A JP12022386A JP12022386A JPS62278607A JP S62278607 A JPS62278607 A JP S62278607A JP 12022386 A JP12022386 A JP 12022386A JP 12022386 A JP12022386 A JP 12022386A JP S62278607 A JPS62278607 A JP S62278607A
Authority
JP
Japan
Prior art keywords
bits
external memory
characters
address word
expressed
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
JP12022386A
Other languages
Japanese (ja)
Inventor
Toshio Yoshida
利夫 吉田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP12022386A priority Critical patent/JPS62278607A/en
Publication of JPS62278607A publication Critical patent/JPS62278607A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To store a larger quantity of working programs into a nonvolatile external memory of the same capacity by compressing the information on each block of a working program. CONSTITUTION:The 26 alphabetic characters A-Z are prepared and A and B, for example, are coded into '0' and '1' respectively. Thus the characters A-Z can be expressed in 5 bits, that is, an address word can be shown in 32 bits in all by allocating 5 bits to an alphabetic character part with 27 bits allocated to a numeric part respectively. Here 32 bits equal to 4 bytes, e.g., four characters and therefore the 27 bits of the numeric part are divided to show an integer part in 16 bits and a decimal part in 11 bits. Thus the address word can be expressed in X-32768.999-X32767.999. For EOB the alphabetic character part, for example, is defined as EOB=11111 for discrimination from the normal address words.

Description

【発明の詳細な説明】 6、発明の詳細な説明 〔産業上の利用分野〕 この発明に、数値制御装置における茄ニブログラムの記
憶方式に関するものである。
[Detailed Description of the Invention] 6. Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a method of storing a program in a numerical control device.

〔従来の技術〕[Conventional technology]

第2図に数値制御装置のシステム信放図である。 FIG. 2 is a system broadcast diagram of the numerical control device.

図において、(1)flシステム全体の制@ltつかさ
どる中央処理装置(以下これ1cPUという)、(2)
はこのCPU(1)で解釈実行されるシステム制御プロ
グラムを格納−するメモリ4置、(31fl/Inニブ
ログラムが格納される不揮発性外部メモリ、(4)は入
出力(Ilo )インタフェース装置、(5)は紙テー
プ人力装置、(6)はサーボモータの位置決め制御Jt
行う定めのサーボインタフェースである。
In the figure, (1) the central processing unit (hereinafter referred to as 1cPU) that controls the entire fl system; (2)
(4) is the input/output (Ilo) interface device; ) is a paper tape manual device, (6) is a servo motor positioning control Jt
This is a servo interface that is designed to be used.

次に動作について説明する。数値制御装置c以下これt
−N Cと略称する)に対するコマンドの加工プログラ
ムは通常紙テープにパンチされ、紙テープ入力装置(5
)および■んインタフェース(4)t−経由して、不揮
発性外部メモリ(3)に格納される。ここで紙テープk
dみ、読み取られ次情報金不渾発性外部メモリ(3)に
格納する手続きに、システム制御プログラムとしてメモ
lJ[1t(2)に予め記憶されている。CPU(1)
flこのシステムプログラム(i−1’4釈実行するこ
とにより、紙テープから加工プログラムを1文字ずつ読
み収り、この5flみ取らルた情報全不揮発性外部メモ
リ(3)へ加工プログラムトシて格納する。ここで、加
工プログラムの形式は、ワードアドレス方式が採用され
る。なお、1本の側ニブログラムは複数のブロックから
構成さ几でおり、各ブロックの最鏝はgOBコードによ
り与見られる□ま几、各ブロックは“復数のアドレスワ
ードから構成される。ここで各アドレスワードの先頭に
英文字A〜2のいずれかであり、この英文字に続く数値
情報として複数桁の数字の並びが指定される。数字の並
びの中には小数点を1つだけ書くことが許され、また負
数の指定も許される。
Next, the operation will be explained. Numerical control device c below this t
-N C) is usually punched on paper tape, and the paper tape input device (5
) and ■ interface (4) t-, and is stored in the non-volatile external memory (3). Paper tape here
The system control program is pre-stored in the memory 1J[1t(2)] during the procedure for reading and storing the next information in the non-volatile external memory (3). CPU (1)
By executing this system program (i-1'4), the processing program is read character by character from the paper tape, and all the information obtained from this 5 fl is transferred to the non-volatile external memory (3) and stored in the processing program. Here, the word address method is adopted as the format of the machining program.One side nib program is composed of multiple blocks, and the maximum trowel of each block is determined by the gOB code.几, each block is composed of a repeating number of address words. Each address word starts with one of the alphabetic characters A to 2, and the numerical information following this alphabetic character is a sequence of multiple digits. Only one decimal point is allowed in a sequence of numbers, and negative numbers are also allowed.

通常小数点以下6桁までが有効である。Usually up to 6 digits after the decimal point are valid.

次に、アドレスワードの例を示す。Next, an example of an address word is shown.

X  123.456 B  −24,8 次にブロックの例を示す。X 123.456 B -24,8 Below is an example of a block.

GOD  X123.d56  Z7B9 108MO
2goB 祇テープ上には、加工プログラムが上記形式に従って1
文字ずつパンチアウトされる。なお、加工プログラムの
全体の終7’f示ス之めに、EORコードがj&t&に
パンチアウトされる。
GOD X123. d56 Z7B9 108MO
2goB On the Gion tape, the processing program is 1 according to the above format.
Punch out characters one by one. Note that at the end of the entire machining program, the EOR code is punched out to j&t&.

次に加工プログラムの例を示す0 GOOX100.OOYloo、00  EOBGOl
  Z−200,Floo  108MO2FJOB OR 第3図iqmニブログラムを不運発注外部メモリへ格納
するためのフローチャートである。まず、ステップCD
で紙テープから1文字ずつ入力全行い、そして外部メモ
リへFORが入力されるまで蒼き込みを行う(ステップ
32,338照)。
Next, an example of a machining program is shown.0GOOX100. OOYloo, 00 EOBGOl
Z-200,Floo 108MO2FJOB OR FIG. 3 is a flowchart for storing an iqm program into an external memory. First, step CD
Inputs all characters one by one from the paper tape at step 32, and then performs blue filling until FOR is input to the external memory (steps 32 and 338).

〔発明が解犬しようとする問題点〕[Problems that the invention attempts to solve]

従来、不揮発性外部メモリには前記の紙テープ上の加工
プログラムと同一の形式でそのま″!格納されており、
英数字およびf20d、EOHに対してそれぞA8ビッ
トの記憶容tが必要であるoしたがって、1本の加工プ
ログラム′に格納するにに、(使用文字数(EOIII
含Q)+11x8ビツトのメモリ容量が必要となる。
Conventionally, the processing program on the paper tape is stored in a non-volatile external memory in the same format as the above-mentioned processing program.
A memory capacity t of A8 bits is required for alphanumeric characters, f20d, and EOH. Therefore, in order to store them in one machining program,
A memory capacity of +11 x 8 bits is required.

この発明は、1本の加工プログラム七より少ない不揮発
性外部メモリー容量の中に格納するために提案さnたも
のであり、従来の記憶方式VC較ベメモリの使用効率の
向上を得ることを目的とする。
This invention is proposed for storing one machining program in a non-volatile external memory capacity that is less than 7, and aims to improve the usage efficiency of the conventional storage method VC comparison memory. do.

〔問題点t#!決するtめの手段〕[Problem t#! tth means to decide]

この発明ニ、」ニブログラムの各ブロックの情報を圧縮
することにより、同一容量の不連発性外部メモリに対し
てより多産の加工プログラムの格納を可能とし定もので
ある。
2) By compressing the information in each block of the Niprogram, it is possible to store a more prolific machining program in a non-continuous external memory of the same capacity.

〔作用〕[Effect]

前述のようにアドレスワードC先頭の英文字とO〜9の
数字の並び(小数点に1つ指定回)で表現されるが、各
アドレスワードを2m形式に変換することによりデータ
の圧182行う〇〔発明の実施例〕 以下、この発明の一実a例を図について説明する。al
!11はこの発明を実現するためのフローチャートであ
る。丁なわち、ステップαυで祇テープより1文字ずつ
人力し、こルが英字であればアドレスワードを作成して
ステップ(ト)でアトVスワード圧縮変換鏝、ステップ
四で不14発性外部メモリへ圧縮済データのJき込み七
行う。EOBt−人力した4会、ブロックの切れ目?明
確にするため、EOBコードを不揮発性外部メモリに出
力する(ステップ21.22参照)。
As mentioned above, the address word C is expressed by the first alphabetic character and a sequence of numbers from 0 to 9 (one decimal point is specified), but by converting each address word to 2m format, data compression 182 is performed. [Embodiments of the Invention] Hereinafter, an example of the present invention will be explained with reference to the drawings. al
! 11 is a flowchart for realizing this invention. In other words, in step αυ, write one character at a time from the tape, and if this is an alphabetic character, create an address word, and in step (g), use the atto V password compression conversion trowel. Transfer the compressed data to 7. EOBt - Man-powered 4th meeting, block break? For clarity, output the EOB code to non-volatile external memory (see step 21.22).

以下、アドレスワードの圧縮方法について具体的に説明
を行う。
The address word compression method will be specifically explained below.

英文字は、A〜2まで26文字あり、こ/Lt−1それ
ぞれ人に対して0、Bに対しては1というようにコード
化する。例えば2のコードは25となる。
There are 26 English letters from A to 2, and they are coded as 0 for person and 1 for B, respectively. For example, the code for 2 becomes 25.

したがってAから2″&でに5ビツトで表現できる。Therefore, 2''& from A can be expressed in 5 bits.

すなわち A=00000. B=00001.・・・拳、 P=
01111.・φ・・Z=11[]Q1 となる。従って、英文字部に5ビツト、数値部に27ビ
ツトk11つ当て、会、ft32ビツトでアドレスワー
ドの表現を行う。32ビツトは4パイトチあり、これに
すなわち4文字となる0数厘部の27ビツト″Itさら
に分割して整数部を16ビツト、小数部t11ピットで
表わす。
That is, A=00000. B=00001. ...fist, P=
01111.・φ...Z=11[]Q1. Therefore, 5 bits are assigned to the alphabetic character part, 27 bits (k11) are assigned to the numerical part, and the address word is expressed using 32 bits. There are 4 bits in 32 bits, and this is further divided into 27 bits "It" which is a 0 number part which becomes 4 characters, and the integer part is represented by 16 bits and the decimal part is represented by t11 pits.

本方式により、整数部は−62768〜32767 ま
で表現でき、小数aは−0,999〜0.999t−表
現できる。したがって、アドレスワードとしては、X−
52768,999〜X327.lS7.999の表現
が可能である。gOBlcljAしては、例えば英文字
部1EOB=11111 とすれば通常のアドレスワー
ドとの区別が可能である。
With this method, the integer part can be expressed from -62768 to 32767, and the decimal number a can be expressed from -0,999 to 0.999t-. Therefore, as an address word,
52768,999-X327. It is possible to express 1S7.999. For gOBlcljA, for example, if the English character part 1EOB=11111, it is possible to distinguish it from a normal address word.

以下、いくつかの例を16唾表記で示す。Below, some examples are shown in 16-letter notation.

X100.1  → 0803 2064A −1,0
→ C17FF  F’8QOアドレスワード=英文字
コード+2a数値(整数部十小数部) 〔発明の効果〕 以上のように、この発明によnば、NCoIXJニブロ
グラムアドレスワードを常に62ビツトで表現できるの
で、同一容量の不揮発性外部メモリに対して多tの圓ニ
ブログラムの記憶が可能となった。また1ニブログラム
情報全バイナリ−データに変換して記憶を行うため、N
C内部ではさらにバイナリ−変換を行う必要−がなく、
データの高速処理がoT能となる。
X100.1 → 0803 2064A -1,0
→ C17FF F'8QO address word = English character code + 2a numerical value (integer part and decimal part) [Effect of the invention] As described above, according to this invention, the NCoIXJ program address word can always be expressed in 62 bits. Therefore, it is now possible to store many tons of nibograms in a nonvolatile external memory of the same capacity. In addition, since all information in one nib program is converted into binary data and stored, N
There is no need for further binary conversion inside C;
High-speed processing of data becomes OT capability.

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

第1図はこの発明の制御動作上表すフローチャート、第
2図はNCのブロック図、第3図は従来の加工プログラ
ムの不14発性外部メモリへの格納方法を表すフローチ
ャート金示す。 図中、(1)にCPU、(2>はメモリ装着、(3)は
不運発性外部メモリ、(4)にI10インタフェース、
(5)は紙テープ入力装置、(6)はサーボインタフェ
ースである。 なお、各図中同一符号は同一または相当部分を示す。
FIG. 1 is a flowchart showing the control operation of the present invention, FIG. 2 is a block diagram of the NC, and FIG. 3 is a flowchart showing a conventional method of storing a machining program in a non-intrusive external memory. In the figure, (1) is the CPU, (2> is the memory installed, (3) is the non-random external memory, (4) is the I10 interface,
(5) is a paper tape input device, and (6) is a servo interface. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] ワードアドレス方式の加工プログラムを格納するための
不揮発性外部メモリを内蔵した数値制御装置において、
英文字と英数字から構成されるワードアドレスを2進デ
ータに圧縮変換することにより、不揮発性外部メモリの
使用効率を向上させたことを特徴とする数値制御装置。
In a numerical control device with a built-in non-volatile external memory for storing word-addressed machining programs,
A numerical control device characterized by improving the usage efficiency of non-volatile external memory by compressing and converting word addresses consisting of alphanumeric characters and alphanumeric characters into binary data.
JP12022386A 1986-05-27 1986-05-27 Numerical controller Pending JPS62278607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12022386A JPS62278607A (en) 1986-05-27 1986-05-27 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12022386A JPS62278607A (en) 1986-05-27 1986-05-27 Numerical controller

Publications (1)

Publication Number Publication Date
JPS62278607A true JPS62278607A (en) 1987-12-03

Family

ID=14780928

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12022386A Pending JPS62278607A (en) 1986-05-27 1986-05-27 Numerical controller

Country Status (1)

Country Link
JP (1) JPS62278607A (en)

Similar Documents

Publication Publication Date Title
US5812841A (en) Method and apparatus for recording and reading date data having coexisting formats
US4782325A (en) Arrangement for data compression
US3694813A (en) Method of achieving data compaction utilizing variable-length dependent coding techniques
EP0083393A2 (en) Method of compressing information and an apparatus for compressing English text
JPH0779262B2 (en) Encoding method of compressed data
US7663511B2 (en) Dynamic character encoding
US5737735A (en) Method and apparatus for recording and reading date data having coexisting formats
JPH0779263B2 (en) Data compression method
JPH0888568A (en) Reversible code encoding method for data
US6396420B1 (en) Delta compression of floating point coordinate data
JPH0644714B2 (en) Code conversion device
CN106354746B (en) Search method and search device
JP2018061166A (en) Encoding program, encoder, and encoding method
JPH0779265B2 (en) Decompression method of compressed data
JPH0779264B2 (en) How to restore compressed data
JPS62278607A (en) Numerical controller
US20090083267A1 (en) Method and System for Compressing Data
JP2715871B2 (en) Variable length coding method
CA1204513A (en) Table structuring and decoding
JPS62278606A (en) Numerical controller
US6055532A (en) Method and apparatus for recording and reading date data having coexisting formats
US6397289B1 (en) Disk control apparatus
JPH03206533A (en) Data compression system
JP3120551B2 (en) Code conversion device
JPS601648B2 (en) code conversion device