JPH0496108A - Nc program transfer method - Google Patents

Nc program transfer method

Info

Publication number
JPH0496108A
JPH0496108A JP21094590A JP21094590A JPH0496108A JP H0496108 A JPH0496108 A JP H0496108A JP 21094590 A JP21094590 A JP 21094590A JP 21094590 A JP21094590 A JP 21094590A JP H0496108 A JPH0496108 A JP H0496108A
Authority
JP
Japan
Prior art keywords
program
data
character
address
code
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
JP21094590A
Other languages
Japanese (ja)
Inventor
Hiroyoshi Sone
裕喜 曽根
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery 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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP21094590A priority Critical patent/JPH0496108A/en
Publication of JPH0496108A publication Critical patent/JPH0496108A/en
Pending legal-status Critical Current

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
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35588Pack, compress data efficiently in memory

Abstract

PURPOSE:To shorten the transmission time by data compression by converting the numeral train part which follows an address character to a binary number of a prescribed number of bits or data of numeral code expression from a character code and transmitting it. CONSTITUTION:At the time of transferring the NC program 4 to an NC device 2 provided on a machine tool 1 from a remote transfer origin device 3 through a transmission line 5, it is subjected to data compression and transferred. That is, the numeral train 12 part which follows address characters 11a, 11b in each word WA, WB of the NC program 4 is converted to a binary number of a prescribed number of bits or data 13 of numeral code expression. This converted NC program 7 is transmitted in series, and the data 13 parts of a prescribed number of bits which follows the address characters 11a, 11b of the transmitted NC program is restored to the numeral train 12 of character code expression. In such a way, the transmission time can be shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、NCプログラムをデータ圧縮して自動プロ
グラミング装置や紙テープリーダとNC装置等の間で転
送するNCプログラム転送方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an NC program transfer method for compressing data of an NC program and transferring the compressed data between an automatic programming device, a paper tape reader, and an NC device.

〔従来の技術〕[Conventional technology]

通常、NCプログラムは、文字コードであるISOコー
ドまたはEIAコードで記述され、自動プログラミング
装置とNC装置等の間で転送を行う場合は、文字コード
のままで伝送している。
Normally, an NC program is written in ISO code or EIA code, which is a character code, and when it is transferred between an automatic programming device and an NC device, the character code is transmitted as is.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

これらの文字コードは、英文字と数字とを示すものであ
るため、数字であっても、英文字と同様に1個のキャラ
クタにつき8ビツトが使用される。
These character codes indicate alphabetic characters and numbers, so even for numbers, 8 bits are used for each character in the same way as for alphabetic characters.

2進数の場合、0〜9の何れかの数値を示すには4ビツ
トで足り、これに比べて前記文字コードの場合は2倍の
ビット数を必要とする。
In the case of binary numbers, 4 bits are sufficient to indicate any numerical value from 0 to 9, whereas in the case of the character code, twice the number of bits is required.

NCプログラムにおいて、各ワードは、例えばrG50
JやrZ298.256Jで示されるように、数字の部
分が多い。特に、後者のディメンションワードの場合は
数字部分が多い。
In the NC program, each word is e.g. rG50
There are many numerical parts, as shown by J and rZ298.256J. In particular, the latter dimension word has many numerical parts.

そのため、前記のように文字コードで伝送すると、数字
列の伝送に無駄なビット数が使用されることになり、伝
送時間が長くかかる。
Therefore, if the character code is used for transmission as described above, a wasted number of bits will be used to transmit the numeric string, and the transmission time will be long.

この発明の目的は、伝送時間の短縮が図れるNCプログ
ラム転送方法に関するものである。
An object of the present invention is to provide an NC program transfer method that can reduce transmission time.

〔課題を解決するための手段〕[Means to solve the problem]

この発明方法を実施例に対応する第1図と共に説明する
The method of this invention will be explained with reference to FIG. 1 which corresponds to an embodiment.

この転送方法は、文字コードで表現されたNCプログラ
ム(4)を転送する方法である。まず、NCプログラム
(4)の各ワード(WA)、 (WB)におけるアドレ
スキャラクタ(lla)、 (llb)に続く数字列(
12)部分を所定ヒツト数の2進数または数字コード表
現のデータ(13)に変換する。この変換されたNCプ
ログラム(7)を直列伝送し、伝送されたNCプログラ
ムのアドレスキャラクタ(lla)、 (llb)に続
く所定ビット数のデータ(13)部分を文字コード表現
の数字列(12)に復元する。
This transfer method is a method of transferring an NC program (4) expressed in character code. First, the number string (
12) Convert the part into data (13) expressed in binary numbers or numerical codes of a predetermined number of hits. This converted NC program (7) is serially transmitted, and the predetermined number of bits of data (13) following the address characters (lla) and (llb) of the transmitted NC program is converted into a numeric string (12) representing a character code. Restore to.

〔作 用〕[For production]

変換前のNCプログラム(4)において、文字コードで
示された数字列(12)の各桁の数字は、通常は各々8
ヒツト以上で表現される。2進数または数字コード表現
のデータ(13)に変換すると、10進数の1桁の数は
4ヒツトで表現でき、例えば7桁であっても4バイトあ
れば表現できる。そのため、前記のデータ変換によりデ
ータ圧縮される。
In the NC program (4) before conversion, each digit of the number string (12) indicated by the character code is usually 8.
Expressed by more than a human. When converted to binary or numeric code representation data (13), one digit of a decimal number can be expressed with 4 hits; for example, even 7 digits can be expressed with 4 bytes. Therefore, the data is compressed by the data conversion described above.

NCプログラム(4)では、必ずアドレスキャラクタ(
lla)、 (llb)とそれに続く数字列(12)と
か対になっており、またアドレスキャラクタ(lla)
、 (11b)によって数字列(12)の桁数も決まっ
ている。
In the NC program (4), the address character (
lla), (llb) and the following number string (12), and the address character (lla)
, (11b) also determines the number of digits of the number string (12).

そのため、復元過程において、アドレスキャラクタ(l
la)、 (llb)に続く所定ヒツト数のデータ(1
3)部分を文字コードに変換すると、元の文字コ〜1・
表示の数字列(12)に復元できる。
Therefore, in the restoration process, the address character (l
la), (llb) followed by a predetermined number of hits of data (1
3) When converting the part to character code, the original character code ~1・
It can be restored to the displayed number string (12).

〔実施例〕〔Example〕

この発明の一実施例を第1図ないし第3図に基づいて説
明する。
An embodiment of the present invention will be described based on FIGS. 1 to 3.

この転送方法は、工作機械1に装備されたNC装置2に
遠隔の転送元装置3からNCプログラム4を伝送路5で
転送するに際して、データ圧縮して転送する方法である
。転送元装置3は、自動プログラミング装置や紙テープ
リーダ等である。伝送路5は直列伝送路であり、R82
32C規格等のインタフェース6を用いる。
In this transfer method, when transferring the NC program 4 from the remote transfer source device 3 to the NC device 2 installed in the machine tool 1 via the transmission path 5, the data is compressed and transferred. The transfer source device 3 is an automatic programming device, a paper tape reader, or the like. Transmission line 5 is a series transmission line, R82
An interface 6 such as the 32C standard is used.

転送元装置3は、NCプログラム4を変換プログラム8
でデータ圧縮NCプログラム7に変換して透化する。転
送先のNC装置2は、受信データを復元プログラム9で
復元NCプログラム10に復元する。変換前のNCプロ
グラム4は、ISOコードやEIAコード等の文字コー
ドで記述されたものである。
The transfer source device 3 converts the NC program 4 into a conversion program 8.
The data is converted into a data compression NC program 7 and transparentized. The transfer destination NC device 2 restores the received data to a restoration NC program 10 using a restoration program 9 . The NC program 4 before conversion is written in character codes such as ISO code and EIA code.

データ圧縮は、NCプログラム4の次の特徴を利用して
行う。すなわち同図に例示するように、NCプログラム
4の各ワードWA、 WBは、同図に例示するように、
必ず英文字のアドレスキャラクタ11a、Ilbと、こ
れに続く数字列12とが対になっており、またそのアド
レスキャラクタlla。
Data compression is performed using the following features of the NC program 4. That is, as illustrated in the figure, each word WA, WB of the NC program 4 is as illustrated in the figure.
The address characters 11a and Ilb, which are alphabetical letters, are always paired with the number string 12 that follows, and the address character lla.

11bの種類に対応して数字列12の桁数も決まってい
る。
The number of digits in the number string 12 is also determined in accordance with the type of number 11b.

例えば、アドレスキャラクタのOは4桁、Gは3桁、M
は3桁、Sは4桁であり、x、y、z。
For example, the address character O is 4 digits, G is 3 digits, M
is 3 digits, S is 4 digits, x, y, z.

U、V、Wは、いずれも3桁+3桁+小数点である。こ
れら各桁の数字およびアドレスキャラクタが、各々8ビ
ツトの文字コードで表現されている。
U, V, and W are all 3 digits + 3 digits + decimal point. Each of these digits and address characters is represented by an 8-bit character code.

そこで、このように表現されたNCプログラム4を、変
換プログラム8では、1桁の英文字のアドレスキャラク
タlla、11bと、2ハイドまたは4ハイドの2進数
表現データ13とに変換する。この場合に、ro、G、
M、SJ等のように、後続数字列12の桁数の少ないア
ドレスキャラクタllaの場合には、数字列12を2バ
イトの2進数表現データ13に変換する。ディメンンヨ
ンワートJbにおけるrZJ等のように後続数字列12
の桁数の多いアドレスキャラクタllbの場合は、数字
列12を4ハイドの2進数表現データ13に変換する。
Therefore, the conversion program 8 converts the NC program 4 expressed in this way into one-digit English address characters lla and 11b and binary representation data 13 of 2-hyde or 4-hyde. In this case, ro, G,
In the case of an address character lla such as M, SJ, etc. in which the number of digits in the subsequent number string 12 is small, the number string 12 is converted into 2-byte binary representation data 13. The following number sequence 12, such as rZJ in Dimension Yonwort Jb.
In the case of the address character llb having a large number of digits, the number string 12 is converted into 4-hyde binary representation data 13.

2進数表現データ13は、同図では16進数で図示して
あり、rH,+の記号は16進数であることを示す。
The binary representation data 13 is shown in hexadecimal in the figure, and the symbol rH,+ indicates that it is in hexadecimal.

復元プログラム9では、伝送されたデータからアドレス
キャラクタIla、Ilbを解読して、後続の所定ヒツ
ト数のデータ13部分を、文字コード表現の数字列12
に復元する。
The restoration program 9 decodes the address characters Ila and Ilb from the transmitted data and converts the following predetermined number of hits of data 13 into a numeric string 12 representing the character code.
Restore to.

第2図および第3図は各々第1図の変換プログラム8お
よび復元プログラム9の一例を示す。第2図において、
NCプログラム4は1ハイドごとに入力され(Sl)、
アドレスキャラクタ11a。
2 and 3 show examples of the conversion program 8 and restoration program 9 shown in FIG. 1, respectively. In Figure 2,
NC program 4 is input for each hide (Sl),
Address character 11a.

11bの判別が行われる(S4)、  (S5)。フラ
グA、Bは初期状態ではリセットされている。
11b is performed (S4), (S5). Flags A and B are reset in the initial state.

後続数字列12が少桁数のアドレスキャラクタllaの
場合は、フラグAをセット(S9)した後、そのアドレ
スキャラクタIlaが出力される(S6)。
If the subsequent number string 12 is an address character lla with a small number of digits, flag A is set (S9), and then the address character Ila is outputted (S6).

フラグAがセットされるため、次にデータ入力(Sl)
されると、判断ステップS2からステップS7に進む。
Since flag A is set, next data input (Sl)
If so, the process advances from judgment step S2 to step S7.

ステップS7では、1バイトの入力データを記憶し、こ
の後ステップS1に戻って次の1バイトのデータが入力
されると、2バイト分のデータを2進数表現データ13
に変換して出力し、かつフラグAをリセットする。後続
数字列の桁数の大きいアドレスキャラクタllbの場合
は、フラグBがセットされ(SIO)、ステップS8で
前記と同様に4バイト分のデータが2進数表現データ1
3に変換される。アドレスキャラクタIla。
In step S7, 1 byte of input data is stored, and when the process returns to step S1 and the next 1 byte of data is input, 2 bytes of data are stored in the binary representation data 13.
and outputs it, and resets flag A. If the address character llb has a large number of digits in the subsequent number string, flag B is set (SIO), and in step S8, 4 bytes of data are converted to binary representation data 1 in the same way as described above.
Converted to 3. Address character Ila.

11bと、数字列12以外のキャラクタの場合、すなわ
ち「/」等の機能キャラクタの場合は、そのまま出力さ
れる(S6)。
11b and a character other than the number string 12, that is, a functional character such as "/", is output as is (S6).

第3図において、データ復元するときは、1ノ1イト分
の入力毎にアドレスキャラクタlla、llbを判別し
くT4)、(T5)、後続少桁数のアドレスキャラクタ
llaの場合は、フラグCをセット(T9)する。この
後、ステップT7で、後続の2バイト分のデータ13を
文字コード表現の数字列12に復元する。後続穴桁数の
アドレスキャラクタllbの場合は、フラグDをセット
して、ステップT8で後続4バイト分のデータ13を文
字コト表現の数字列12に復元する。
In Figure 3, when restoring data, the address characters lla and llb should be determined for each 1-byte input (T4), (T5), and in the case of the following address character lla with a small number of digits, the flag C should be set. Set (T9). Thereafter, in step T7, the subsequent 2 bytes of data 13 are restored to a numeric string 12 representing a character code. In the case of the address character llb having the number of subsequent hole digits, the flag D is set, and in step T8, the subsequent 4 bytes of data 13 are restored to a numeric string 12 representing a character line.

この転送方法は、このように数字列12の部分を2進数
表現データ13に変換することにより、データ圧縮して
転送するので、転送時間が短縮される。
In this transfer method, the data is compressed and transferred by converting the numerical string 12 into the binary representation data 13, so that the transfer time is shortened.

第1図に例示したプログラム例では、変換前のNCプロ
グラム4において、アドレスキャラクタ「0」のワード
WAが5バイト、 rGJ 17)’7−トWAか3バ
イト、rXJ、rZ」のワードWBがいずれも8バイト
であり、合計、24バイト必要とする。
In the program example shown in FIG. 1, in the NC program 4 before conversion, the word WA of the address character "0" is 5 bytes, rGJ 17) '7-TO WA or 3 bytes, rXJ, rZ' is the word WB. Both are 8 bytes, requiring a total of 24 bytes.

変換後のNCプログラム7では、2つの少桁数のワード
WAが各々3ハイド、2つの大桁数のワードWBが各々
5ハイドであり、合計16バイトで足りる。
In the NC program 7 after conversion, two small-digit words WA each have 3 hides, and two large-digit words WB each have 5 hides, so a total of 16 bytes is sufficient.

データ圧縮率は、16/24″;67%であり、2/3
になる。10mのNCテープを4800bpsで送った
場合、圧縮しない場合は58秒かがるが、圧縮すると、
58X2/3#39秒で送ることができる。
The data compression rate is 16/24″; 67%, and 2/3
become. When sending a 10m NC tape at 4800bps, it takes 58 seconds without compression, but with compression,
58X2/3# Can be sent in 39 seconds.

なお、前記実施例では2進数表現データ13に変換する
ようにしたが、2進化10進コード(BCDコード)や
、その他の数字コードに変換しても、データ圧縮して転
送することができる。
In the above embodiment, the data is converted to binary representation data 13, but the data can be compressed and transferred even if it is converted to a binary coded decimal code (BCD code) or other numerical code.

〔発明の効果〕〔Effect of the invention〕

この発明のNCプログラム転送方法は、アドレスキャラ
クタに続く数字列部分を文字コードがら所定ピット数の
2進数または数字コード表現のデータに変換して伝送す
るため、データ圧縮により伝送時間が短縮されるという
効果がある。
The NC program transfer method of the present invention converts the character code of the numeric string part following the address character into data expressed in binary or numeric code with a predetermined number of pits, and thus reduces the transmission time by compressing the data. effective.

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

第1図はこの発明方法を適用する装置の構成説明図、第
2図はその変換プログラムの流れ図、第3図は同じくそ
の復元プログラムの流れ図である。 ■・・、工作機械、2− N C装置、3・・・転送元
装置、4・・・変換前NCプログラム、5・・・伝送路
、7・・・ブタ圧縮NCプログラム、8・・・変換プロ
グラム、9・・・復元プログラム、10・・・復元NC
プログラム、11a、 llb・・アドレスキャラクタ
、I2・・・数字列、13・・・2進数表現データ、W
A、 WB  ・・・ワード特許出願人  村田機械株
式会社 一−’−4−J −ユニとり 第 図 第 図
FIG. 1 is an explanatory diagram of the configuration of an apparatus to which the method of the present invention is applied, FIG. 2 is a flowchart of the conversion program, and FIG. 3 is a flowchart of the restoration program. ■... Machine tool, 2-NC device, 3... Transfer source device, 4... NC program before conversion, 5... Transmission line, 7... Pig compression NC program, 8... Conversion program, 9... Restoration program, 10... Restoration NC
Program, 11a, llb...address character, I2...numeric string, 13...binary representation data, W
A, WB...Word patent applicant Murata Machinery Co., Ltd. 1-'-4-J-Unitori Diagram Diagram

Claims (1)

【特許請求の範囲】[Claims]  文字コードで表現されたNCプログラムにつき、各ワ
ードにおけるアドレスキャラクタに続く数字列部分を所
定ビット数の2進数または数字コード表現のデータに変
換する過程と、この変換されたNCプログラムを直列伝
送する過程と、伝送されたNCプログラムの前記アドレ
スキャラクタに続く所定ビット数のデータ部分を文字コ
ード表現の数字列に復元する過程とを含むNCプログラ
ム転送方法。
For an NC program expressed in a character code, a process of converting the number string part following the address character in each word into data expressed as a binary number or numerical code of a predetermined number of bits, and a process of serially transmitting the converted NC program. and a step of restoring a data portion of a predetermined number of bits following the address character of the transmitted NC program into a numeric string representing a character code.
JP21094590A 1990-08-08 1990-08-08 Nc program transfer method Pending JPH0496108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21094590A JPH0496108A (en) 1990-08-08 1990-08-08 Nc program transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21094590A JPH0496108A (en) 1990-08-08 1990-08-08 Nc program transfer method

Publications (1)

Publication Number Publication Date
JPH0496108A true JPH0496108A (en) 1992-03-27

Family

ID=16597700

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21094590A Pending JPH0496108A (en) 1990-08-08 1990-08-08 Nc program transfer method

Country Status (1)

Country Link
JP (1) JPH0496108A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0561534A (en) * 1991-09-03 1993-03-12 Mitsubishi Electric Corp Data transfer method
JP2003529814A (en) * 1999-07-20 2003-10-07 インメンティア インク Methods and systems for data reduction

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0561534A (en) * 1991-09-03 1993-03-12 Mitsubishi Electric Corp Data transfer method
JP2003529814A (en) * 1999-07-20 2003-10-07 インメンティア インク Methods and systems for data reduction
JP2012212437A (en) * 1999-07-20 2012-11-01 Primentia Inc Method and system for data arrangement

Similar Documents

Publication Publication Date Title
US6970114B2 (en) Gate-based zero-stripping, varying length datum segment and arithmetic method and apparatus
CA2128127A1 (en) Method and system for data compression
JPS58200654A (en) Communication device
EP0204992B1 (en) Method for compressing and decompressing data
GB2314745A (en) Improved serial infrared asynchronous communication
JPH0525225B2 (en)
JPH0496108A (en) Nc program transfer method
JPS58184646A (en) Message communication system
JPS6382061A (en) Data compression system
JPS63176049A (en) Data compression system
JPH05341955A (en) Data compression and restoration system
JP2012034272A (en) Device and method for compressing character string data and device and method for decompressing character string data
US6608570B1 (en) Matrix implemented data compression apparatus and method
JPH02218224A (en) Data transferring method
JPH036924A (en) Terminal equipment
KR0175463B1 (en) Simulation Control Character Processing Method for Binarization of Text Data in Asynchronous Network
JP2786161B2 (en) Data transfer method
JPH10164172A (en) Text data transmission method
JPH03162134A (en) Compressing/expanding system for communication data
JPS61232724A (en) Compressing system for character code data
JPH0520225A (en) Data transmission system
KR100443012B1 (en) Decoding process for byte stream of compressed data
JPS54108504A (en) Data transmission system on start-stop system
JPS6028371A (en) Data storage system
JPS62160556A (en) Method for transmitting object program