JPS62278606A - Numerical controller - Google Patents
Numerical controllerInfo
- Publication number
- JPS62278606A JPS62278606A JP12022286A JP12022286A JPS62278606A JP S62278606 A JPS62278606 A JP S62278606A JP 12022286 A JP12022286 A JP 12022286A JP 12022286 A JP12022286 A JP 12022286A JP S62278606 A JPS62278606 A JP S62278606A
- Authority
- JP
- Japan
- Prior art keywords
- address word
- bits
- characters
- data
- decimal
- 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
- 238000003754 machining Methods 0.000 claims description 4
- 238000007906 compression Methods 0.000 abstract description 4
- 230000006835 compression Effects 0.000 abstract description 4
- 238000000034 method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000013144 data compression Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 208000003580 polydactyly Diseases 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/35—Nc in input of data, input till input file format
- G05B2219/35588—Pack, compress data efficiently in memory
Landscapes
- Numerical Control (AREA)
Abstract
Description
【発明の詳細な説明】
3、発明の詳細な説明
〔産業上の利用分野〕
この発明は、数値制御装置における加工プログラムの記
憶方式に関するものである。[Detailed Description of the Invention] 3. Detailed Description of the Invention [Field of Industrial Application] This invention relates to a storage system for machining programs in a numerical control device.
第2図は数値制御II装置のシステム構成図である。 FIG. 2 is a system configuration diagram of the numerical control II device.
図において、(1)はシステム全体の制御をつかさどる
11コ央処理装置(以下これをCPUという) 、(2
+はこのCP U [11で解釈実行されるシステム制
御プログラムを格納するメモリ装置、(3)は加工プロ
グラムが格納される不揮発性外部メモ!J 、(41ζ
よl10(入出力)インタフェース装置、(5)は紙テ
ープ入力装置、(8)はサーボモータの位置決め制御を
行うためのサーボインターフェースである。In the figure, (1) indicates the 11 central processing units (hereinafter referred to as CPUs) that are in charge of controlling the entire system, and (2)
+ is a memory device that stores the system control program that is interpreted and executed by this CPU [11], and (3) is a nonvolatile external memo that stores the machining program! J, (41ζ
110 (input/output) interface device, (5) a paper tape input device, and (8) a servo interface for controlling the positioning of the servo motor.
次に動作について説明する。数値制御装置(以下これを
NCと略称する)に対するコマンドの加工プログラムは
、通常紙テープにバンチされ、紙テープ入力装置(5)
およびI10インク−フェース(4)を経由して、外部
メモリ(3)に格納される。紙テープ(5)の情報を読
んでこれを不揮発性外部メモリ(3)に格納する手続は
、システム制御プログラムとしてメモリ装置(2)に予
め記憶されている。そして、CP U (1)はこのシ
ステム制御プログラムを解釈実行することにより、紙テ
ープ(5)から加工プログラムを1文字ずつ読取り、こ
の読取られた情報は加工プログラムとしてI10インク
ーフエー・ス(4)を経由し、不揮発性外部メモリ(3
)へと格納される。Next, the operation will be explained. The command processing program for the numerical control device (hereinafter abbreviated as NC) is usually bunched onto paper tape, and the paper tape input device (5)
and stored in the external memory (3) via the I10 ink-face (4). The procedure for reading the information on the paper tape (5) and storing it in the non-volatile external memory (3) is stored in advance in the memory device (2) as a system control program. Then, the CPU (1) reads the processing program character by character from the paper tape (5) by interpreting and executing this system control program, and this read information is sent as a processing program via the I10 ink face (4). and non-volatile external memory (3
).
ここで、上記加工プログラムの形式は、ワードアドレス
方式が採用されろ。そして1本の加工ブログラムは複数
のブロックから構成されており、各ブロックの最後はE
OBフードにより与えられろ。Here, the format of the processing program is a word address method. One machining program consists of multiple blocks, and the last of each block is E.
Feed with OB food.
上記の各ブロックは複数のアドレスワードから構成され
、各アドレスワードの先頭はA−Zの英文字のいずれか
であり、この英字に続く数値情報としては、複数桁の数
字の並びが指定される。この数字の並びの中には小数点
を1つだけ書くことが許され、かつ、負数の指定も許さ
れる。そして通常は小数点以下3桁までが有効とされろ
。Each of the above blocks is composed of multiple address words, and the beginning of each address word is one of the alphabetic characters from A to Z, and the numerical information following this alphabetic character is specified as a sequence of multiple digit numbers. . Only one decimal point is allowed in this sequence of numbers, and negative numbers are also allowed. Normally, up to three digits after the decimal point are considered valid.
次に、アドレスワードの例を示す。Next, an example of an address word is shown.
X 123.456 B −24,8 また、ブロックの例を次に示す。X 123.456 B -24,8 An example of a block is shown below.
Goo x123.456 Z789 EOBMO2E
OB
紙テープ上には、加工プログラムとして上記形式にした
がって1文字ずつパンチアウトされる。Goo x123.456 Z789 EOBMO2E
OB Characters are punched out one by one on the paper tape according to the above format as a processing program.
ここで加工プログラムの全体の終了を示すためにEOR
コードが最後にパンチアウトされる。Here, EOR is used to indicate the end of the entire machining program.
The code is punched out at the end.
次に加工プログラムの例を示す。An example of a machining program is shown next.
GOOxlOo、00 Yloo、00 EOBGOI
Z−200,Floo EOBM02 EQB
OR
第3図は加工プログラムを不揮発性外部メモリ(3)へ
格納するためのフローチャー1・である。まず、ステッ
プ(31)で紙テープ入力装置(5)からI10インタ
フェース(4)を経由して1文字ずつ不揮発性外部メモ
リ(3)入゛力する。そしてステップ(32)および(
33)で不揮発性外部メモリへEORが入力されるまで
書き込みを行う。GOOxlOo, 00 Yloo, 00 EOBGOI
Z-200,Floo EOBM02 EQB OR FIG. 3 is a flowchart 1 for storing a machining program into the non-volatile external memory (3). First, in step (31), characters are input one by one into the nonvolatile external memory (3) from the paper tape input device (5) via the I10 interface (4). and steps (32) and (
In step 33), writing is performed to the nonvolatile external memory until EOR is input.
従来、不揮発性外部メモリには、前記の紙テープ上の加
工プログラムと同一の形式でそのまま格納されており、
英数字及びEOB、EORに対してそれぞれ8ビツトの
記憶容量が必要である。そのなめ、1本の加工プログラ
ムを格納するには、(使用文字数(EOBを含む)+1
)x8ビットのメモリ容量が必要となる。Conventionally, non-volatile external memory stores the processing program on the paper tape in the same format as it is.
8-bit storage capacity is required for each alphanumeric character, EOB, and EOR. Therefore, to store one machining program, (number of characters used (including EOB) + 1
)x8 bit memory capacity is required.
この発明シよ、1本の加工プログラムをより少ない不揮
発性外部メモリ容量の中に格納するために提案されたも
のであり、従来の記憶方式に較ベメモリの使用効率の向
上を得ることを目的とする。This invention was proposed in order to store one machining program in a smaller amount of non-volatile external memory, and aims to improve memory usage efficiency compared to conventional storage methods. do.
この発明は、加工プログラムの各ブロックの情報を圧縮
することにより、同一容量の不揮発性外部メモリに対し
てより多量の加工プログラムの格納を可能としたもので
ある。This invention makes it possible to store a larger amount of machining programs in a nonvolatile external memory of the same capacity by compressing the information of each block of the machining program.
前述のように各アドレスワードは先頭の英文字と0〜9
の数字の並び(小数点を1つ指定回)とで表現されるが
、このアドレスワードr!!2進形式に変換することに
よりデータの圧縮を行う。As mentioned above, each address word consists of the first alphabetic character and 0-9.
This address word r! is expressed as a sequence of numbers (with one decimal point specified). ! Data is compressed by converting it to binary format.
息下、この発明の一実施例を図について説明する。第1
図はこの発明を実現するためのフローチャー)・である
。まず、ステップαDで紙テープ入力装置より1文字ず
つ入力し、これが英字であればアドレスワードを作成し
、ステップ(至)でアドレスワード圧縮変換後、ステッ
プ餓で不揮発性外部メモリへ圧縮済データの書き込みを
行う。次にステップ四でEOBを入力した場合ブロック
の切れ目を明確にするなめに、ステップI211でEO
Bコードを不揮発性外部メモリ(3)に出力する。An embodiment of the present invention will now be described with reference to the drawings. 1st
The figure is a flowchart for realizing this invention. First, in step αD, input one character at a time from the paper tape input device. If it is an alphabetic character, an address word is created. In step αD, the address word is compressed and converted, and in step αD, the compressed data is written to non-volatile external memory. I do. Next, when inputting EOB in step 4, in order to clarify the break between blocks, input EOB in step I211.
Output the B code to the nonvolatile external memory (3).
以下、アドレスワードの圧縮方法について具体的に説明
を行う。The address word compression method will be specifically explained below.
英文字はA〜Zまで26文字ある。いま、それぞれAに
対して1、Bに対してば2というようにコード化する。There are 26 English letters from A to Z. Now, code A as 1, B as 2, and so on.
例えばZのコードは26となる。For example, the code for Z is 26.
そして圧縮後のデータの形式を次のように定める。The format of the data after compression is determined as follows.
アドレスワード−英文字コード+2進数値ここで上記の
アドレスワードは、数値を表すときに少数点の使用が許
されるので、2進数値を整数部と少数部に分けることが
できる。従ってアドレスワードは、
アドレスワード−英文字コード+2進数値(整数部子少
数部)
ここで、英文字コードは8ピツト、整数部、少数部を各
16ビツトで表すと、全てのアドレスワードは、8+1
6+16ビツトすなわち40ビツトで表現できる。40
ビツトは5バイトすなわち5文字分のメモリ容量となる
。ここで、通常アドレスワードは5文字を越える場合が
多いので、データの圧縮が可能となる。なお、数値部が
負の数である場合には、少数点以上および以下の2進数
値を2の補数で表現すれば良い。Address word - English character code + binary value Here, in the above address word, the use of a decimal point is allowed when representing a numerical value, so the binary value can be divided into an integer part and a decimal part. Therefore, the address word is: Address word - English character code + binary value (integer part, fractional part) Here, if the English character code is represented by 8 bits, and the integer part and fractional part are each represented by 16 bits, then all address words are: 8+1
It can be expressed with 6+16 bits, or 40 bits. 40
A bit corresponds to 5 bytes, that is, the memory capacity for 5 characters. Here, since the address word usually exceeds five characters in many cases, data compression becomes possible. Note that when the numerical value part is a negative number, the binary values above and below the decimal point may be expressed as two's complement numbers.
以下、圧縮後のデータ例を16道表記で示す。Examples of compressed data are shown below in 16-way notation.
なお、小数点以下は3桁とする。そして矢印の右側が変
換後のデータである。Note that there are 3 digits after the decimal point. The data on the right side of the arrow is the data after conversion.
X100.1 − 1800640064に123
.010 → OB 007C000人L
−1,1呻 QCFFFF FF9CY100O
O呻 19 2710 0000ココテX100.
Of;t Xl00.100ト、ソLzrL−1,1
はL−1゜100とそれぞれ解釈する。なお、L−1,
1については、もともと5文字であるから、データ圧縮
の効果を得ていない。また、EOBに関しては、1から
26以外のコードを使用することにより英字と区別がで
きろ。X100.1-123 to 1800640064
.. 010 → OB 007C000 people L
-1,1 groan QCFFFF FF9CY100O
O groan 19 2710 0000 Kokote X100.
Of;t Xl00.100, SoLzrL-1,1
are respectively interpreted as L-1°100. In addition, L-1,
Regarding 1, since it originally has 5 characters, the effect of data compression is not obtained. Also, regarding EOB, it can be distinguished from alphabetic characters by using a code other than 1 to 26.
以上のように、この発明によれば、NCの加工プログラ
ムアドレスワードを常に40ビツトで表現できるので、
同一容量の不揮発性外部メモリに対して多量の加工プロ
グラムの記憶が可能となった。また加工プログラム情報
をバイナリ−データに変換して記憶を行うため、NC内
部におけるデータ処理の高速化が可能となる。As described above, according to the present invention, the NC machining program address word can always be expressed in 40 bits.
It is now possible to store a large amount of machining programs in the same capacity non-volatile external memory. Furthermore, since machining program information is converted into binary data and stored, it is possible to speed up data processing within the NC.
第1図はこの発明の制御動作を表すフローチャート、第
2図はNCのブロック図、第3図は従来の加工プログラ
ムの不揮発性外部メモリに対する格納方法を表すフロー
チャー1・である。
図中、(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 1 showing a conventional method of storing a machining program in a non-volatile external memory. In the figure, (1) is the CPU, (2+ is the memory device, (3) is the non-volatile external memory, (4) is the I10 interface,
(5) is a paper tape input device, and (6) is a servo ink face. Note that the same reference numerals in each figure indicate the same or corresponding parts.
Claims (1)
不揮発性外部メモリを内蔵した数値制御装置において、
英文字と英数字から構成されるワードアドレスを英数字
で表す1バイト情報と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 a nonvolatile external memory by compressing and exchanging a word address consisting of alphanumeric characters and alphanumeric characters into 1-byte information and binary data represented by alphanumeric characters.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP12022286A JPS62278606A (en) | 1986-05-27 | 1986-05-27 | Numerical controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP12022286A JPS62278606A (en) | 1986-05-27 | 1986-05-27 | Numerical controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62278606A true JPS62278606A (en) | 1987-12-03 |
Family
ID=14780905
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP12022286A Pending JPS62278606A (en) | 1986-05-27 | 1986-05-27 | Numerical controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62278606A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0412052U (en) * | 1990-05-21 | 1992-01-31 |
-
1986
- 1986-05-27 JP JP12022286A patent/JPS62278606A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0412052U (en) * | 1990-05-21 | 1992-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5812841A (en) | Method and apparatus for recording and reading date data having coexisting formats | |
WO1997043708A1 (en) | Method and apparatus for recording and reading date data having coexisting formats | |
US5519860A (en) | Central processor index sort followed by direct record sort and write by an intelligent control unit | |
JPS62278606A (en) | Numerical controller | |
JP7204798B2 (en) | Apparatus and method for storing data in non-volatile memory | |
JPH02208716A (en) | Character and pattern output device | |
JPS62278607A (en) | Numerical controller | |
JPS5953579B2 (en) | character compression device | |
JPS6058486B2 (en) | Programmable micro-operation editing device | |
JPS63145582A (en) | Data storage system | |
JPH04180413A (en) | Binary floating point data compression and expansion system | |
JPH0281103A (en) | Display method for nc working program | |
JPH03104421A (en) | System and device for data compression and data decoder | |
JP2850677B2 (en) | OSI message synthesis system | |
JPS628373A (en) | Disc interface circuit | |
JP2537198B2 (en) | Portable electronic devices | |
JPH0155493B2 (en) | ||
JPS6182252A (en) | Memory | |
JPS6256987A (en) | Expansion of kanji code | |
JPH02158861A (en) | Half size character string conversion system | |
JPS61236224A (en) | Method for compressing data | |
JPH0797371B2 (en) | Character data storage | |
JPS61149365A (en) | Data controlling device | |
JPH0145648B2 (en) | ||
JPS62194535A (en) | Symbol processor |